Adding to an existing search

meppwc

Well-known Member
Joined
May 16, 2003
Messages
636
Office Version
  1. 365
Platform
  1. Windows
The formula below resides in cell F3 and it works perfectly. If a "hit" is found in C2:C600 then the value in column C is displayed in F3
=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(A3,$C$2:$C$600),$C$2:$C$600),"")

I am trying to figure out a way of it displaying the value from column B opposed to the value in column C

For example:
If cell B100 has a value of "black", and cell C100 has a value of "white"
The current formula will return "white" if a hit occurs in C100
I want it to return "black" if there is a hit in C100

Note - because of certain conditions I must continue to utilize the combination of LOOKUP and SEARCH.
Any assistance greatly appreciated.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
how about

=IFERROR(LOOKUP(9.99999999999999E+307,SEARCH(A3,$C$2:$C$600),$B$2:$B$600),"")
 
Upvote 0
LOL..........I too just figured it out............so sorry to have been a bother but I thank you both for replying.
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,520
Latest member
packrat68

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top