Hi,
See attached sheet. Is this lookup possible?
Hi,
See attached sheet. Is this lookup possible?
close try this instead:
=CHOOSE({1,2},XLOOKUP(D2,M:M,N:N),XLOOKUP(D2,O:O,P:P))
<----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.
I'm getting #SPILL!
Last edited by Cuni; 10-25-2022 at 11:42 AM.
E2=SUMPRODUCT(($M$2:$O$5=D2)*(N(+($N$2:$P$5))))
Copy down
if you are getting spill error that means there is data below or to the side of it so it can't show all results. just delete the excess data and you should be good
Attachment 802301
Not able to make it work...
Attachment 802302
Not even this is working. It should who 10 in E2 and 22 in F2...
Provide a workbook with your expected results mocked up MANUALLY, NOT a non-working formula.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Here is the solution I'm looking for. I put in the values manually but would like to solve it with formula starting in E2.
One way:
=SUMPRODUCT(($M$2:$M$3=D2)*($N$2:$N$3))+SUMPRODUCT(($O$2:$O$3=D2)*($P$2:$P$3))
Another (365) way:
=LET(v,VSTACK($M$2:$N$3,$O$2:$P$3),VLOOKUP(D2,v,2,0))
E2=SUMIF($M$2:$O$3,$D2,$N$2:$P$3)
Copy down
Thank you all!
Glad to have helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks