ThanksPoor title, no description in thread without opening your file.. I'll pass
Hello excel experts,
The problem in the attached sheet seemed simple but it has taken me a while. Please help. Thanks
Thanks. Manual always works. But with excel you can handle almost all data, whether large or small. That is why I want to learn it more. I know there is a way. I just want someone to help me connect the dot. And I like adventure. Manual is not adventurous
What the posting person means here is demonstrate all columns correct results manually so that a formula or other approach could be verified! This would be because the logic that you think is clear may not be clear at all for the other person!!Thanks. Manual always works. But with excel you can handle almost all data, whether large or small. That is why I want to learn it more. I know there is a way. I just want someone to help me connect the dot. And I like adventure. Manual is not adventurous
I think the idea was that the manual result should be sufficient to indicate the desired output of any formula.Manual is not adventurous
Thanks. Let me clarify.What the posting person means here is demonstrate all columns correct results manually so that a formula or other approach could be verified! This would be because the logic that you think is clear may not be clear at all for the other person!!
Hello,Please clarify below queries.
1. Does the range N1:O10 have any relation to calculations? If yes, how exactly is it supposed to be used in formulas.
2. You have two different formulas in ranges B2:K11 and B15:K24 respectively. Do you need assistance with either one or both of them?
2. In column H we should have only USDMXN as probably MXN has 0 (n) assigned against it and therefore only one pair (n+1). Is this the logic behind number of pairs to be shown?
3. In column H, why USDMXN is the desired outcome? Why MXNAUD or MXNCAD are not desired outcomes? What rule does govern this calculation?
Having said this, @Peter Bartholomew has already posted his logic. Have you checked it?
Thanks for your help. This formula (=IF(VLOOKUP($B3,$O$2:$P$11,2)>VLOOKUP(C$2,$O$2:$P$11,2),$B3&C$2,"")) has almost given me what I want. The only challenge is MXN and ZAR. The problem is that with MXN I only want USDMXN, and with ZAR I only want USDZAR and GBPZAR.'priority' was the name I gave to the sequence of values to the right of your image. 'currency1' are the currency codes as a column and 'currency2' the same codes as a row range [the use of defined names is just my personal style; if I know what a data object represents, I name it; if I don't know what it represents, I delete it to avoid confusion!].
It quickly became clear that I wasn't going to return the values you are expecting. If EUR (9) is an empty column then my logic would suggest MXN (0) should be fully populated, [changing the direction of the inequality transposes the array].
= LET(
priorityFilter, priority>TRANSPOSE(priority),
MXfilter, 1 - (currency2="MXN")*(currency1<>"USD"),
ZAfilter, 1 - (currency2="ZAR")*((currency1<>"USD")*(currency1<>"GBP")),
combinedFilter, priorityFilter*MXfilter*ZAfilter,
IF(combinedFilter, currency1¤cy2,"") )
Thanks guru. But honestly I do not understand your suggestion. It will take me a while. I am very new to excel. After a while I have come up with this formula: =IF(VLOOKUP(B$1,$N$1:$O$10,2)>0,IF(VLOOKUP($A2,$N$1:$O$10,2)>VLOOKUP(B$1,$N$1:$O$10,2),$A2&B$1,""),IF(B$1="zar",IF(OR($A2="GBP",$A2="USD"),$A2&B$1,IF(B$1="mxn",IF($A2="USD",$A2&B$1),"")),""))Formulas are only useful if there is a logical pattern to capture. Otherwise, it is more effective to build the array manually. An Excel 365 formula that captures the basic logic as well as individual rules linking Mexico and South Africa to other currencies might be
Code:= LET( priorityFilter, priority>TRANSPOSE(priority), MXfilter, 1 - (currency2="MXN")*(currency1<>"USD"), ZAfilter, 1 - (currency2="ZAR")*((currency1<>"USD")*(currency1<>"GBP")), combinedFilter, priorityFilter*MXfilter*ZAfilter, IF(combinedFilter, currency1¤cy2,"") )
View attachment 73261
If you do not use Excel 365, I could build the filters using defined names but I refuse to use direct cell referencing.
Thank you so much guru. Very informativeSee your point. If you do not have the Excel 365 function, you weren't in with a chance. I have moved the formula into defined names which probably will not aid understanding but the workbook should work.
View attachment 73293