=Lookup for prices
Hello everyone,
here is the one but possibly not the only one with not much experience in making good formulas.
Well, I want to use a table to report my postcards with prices I spent on my holidays.
Fully automatically of course … that's the plan … 😁
Name | Country | 1st | 4th | Price Stamps | |
1 | A | Germany | 07.06.2018 | £ 1.17 | |
2 | B | Germany | 07.06.2018 | £ 1.17 | |
3 | C | England | 07.06.2018 | £ 1.40 |
LOOKUP(Post cards::D2,Country of destination::$B$2:$D$3,Country of destination::$B$4:$D$4)
This should be the easy formula but even this does not work the way I intend to do.
The table is shortened, I have up to 4 postcards I could send anyone. In the column M the prices for all the stamps paid for a person should appear here. As you can see in the table country of destination the formula shall get the price for the correct World Zone. Thus England should be in Europe for £1.17 and not £1.40.
COUNTIF(E2:K2,">05.06.2018")×IF(Country of destination::$A$4<TODAY(),LOOKUP(D2,Country of destination::$B$2:$D$3,Country of destination::$B$4:$D$4),LOOKUP(D2,Country of destination::$B$2:$D$3,Country of destination::$B$5:$D$5))
This is the table and formula how it should look like (shortened). As you can see there are two dates 1st 27.3.2017 and 2nd 26.3.2018 which should be considered when the today is after the 2nd date. Well, I know this makes it more complicated but as prices rise every year this would be the easiest way to get the right price. For this I have no solution yet as the first problem is not solved anyway.
Would someone help me, please! It is fun trying to find the solutions but when nothing works it's sad.
Thank you.
Regards limmy3
iMac (27-inch, Late 2013), macOS High Sierra (10.13.2), latest version