Looking for formula to extract values into column A2:A20. Column K and L are the two columns where the data resides for the data pull. Sample file attached
Thanks
Looking for formula to extract values into column A2:A20. Column K and L are the two columns where the data resides for the data pull. Sample file attached
Thanks
Try this, copied down...
=INDEX(L:L,MATCH(B2,K:K,0))
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
FDibbins: formula is not pulling the right values.
It is...
A B C D 2Yes Acai Yes TRUE 3Noise Aceola Noise TRUE 4Yes Apple Yes TRUE 5Yep! Mulberry Yep! TRUE 6Ride Blackberry Ride TRUE 7Height Apricots Height TRUE 8Ok Aceola Noise FALSE 9No Aceola Noise FALSE 10Eat Blueberries Eat TRUE 11Fun Blueberries Eat FALSE 12Ocean Durian Ocean TRUE 13Yes Goji berries Yes TRUE 14Island Banana Island TRUE 15Fruit Grapefruit Fruit TRUE 16Why Gooseberry Why TRUE 17Now Durian Ocean FALSE 18Okies Melon Okies TRUE 19Okiey Melon Okies FALSE 20Okies Melon Okies TRUE
col A is you answers, col C is my answers, col D is differences
The differences are coming in because you have different nutrients for the same fruit. How would excel know which 1 you want returned?
Try...
=LOOKUP(2,1/(K:K=B2),L:L)
Phuocam, that leave many returns that do not match what the OP posted![]()
If I understand correctly try this array-entered formula in A2 and fill down.If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.Formula:
=INDEX($L$2:$L$39,SMALL(IF($B2=$K$2:$K$39,ROW($K$2:$K$39)-MIN(ROW($K$2:$K$39))+1),COUNTIF($B$2:$B2,$B2)))
Dave
FlameRetired - works like a charm. Thanks for the solution
You're welcome. Glad to help and thanks for the feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks