Hi,
I want a formula to look for any row that has the same Company name and has New York as a Location, and output the description associated with New York.
Basically, I want to know how to get to the output shown in Column D
Data.png
Hi,
I want a formula to look for any row that has the same Company name and has New York as a Location, and output the description associated with New York.
Basically, I want to know how to get to the output shown in Column D
Data.png
Hi - paste this ARRAY FORMULA in D2 and copy down. You'll need to adjust the ranges:
=IFERROR(INDEX($B$2:$B$16,MATCH(1,($A$2:$A$16="New York")*($C$2:$C$16=$C2),0)),"")
Row\Col A B C D 1location description company output 2New York OK2 aaa OK2 3Detroit OK3 bbb OK11 4Detroit OK4 ccc OK8 5Detroit OK5 ddd OK13 6Detroit OK6 aaa OK2 7Detroit OK7 bbb OK11 8New York OK8 ccc OK8 9Detroit OK9 ddd OK13 10Detroit OK10 aaa OK2 11New York OK11 bbb OK11 12Detroit OK12 ccc OK8 13New York OK13 ddd OK13 14Detroit OK14 aaa OK2 15Detroit OK15 bbb OK11 16Detroit OK16 ccc OK8
*You must press CTRL+SHIFT+ENTER to confirm entry of an ARRAY FORMULA in the Formula Bar.
When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.
Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
Last edited by leelnich; 06-16-2017 at 05:49 PM.
leelnich,
Thank you. The formula worked perfectly.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks