Im in over my head

doveyp

New Member
Joined
May 1, 2011
Messages
17
Can somene please help me with the following: if cell b16=any cell in the range f16:j16 then display the cell in column k that is in the same row as the match? If no match in the range please display nothing. Thankyou in advance.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Thankyou Glory why does my return show nothing when I know the text in b16 is in the range f15:j16? Actually the first post should have said range f15:j16 not f16:j16.
 
Upvote 0
Try

=IF(ISNUMBER(MATCH(B16,F15:J15,0)),K15,IF(ISNUMBER(MATCH(B16,F16:J16,0)),K16,""))
 
Upvote 0
It looks like the method I chose doesn't work with multiple rows. The formula works, but only with a single row for some reason.

Someone will come up with a solution for you. Here's a simpler version btw, some of the previous formula was superfluous:

=if( iserror( match(b16,f16:j16,0) ) ,"",b16)


Edit: Jason, why is it necessary to work with the rows one at a time?
 
Upvote 0
The match and lookup functions can only search a single row or column, there are workarounds to this using array formula, but with only 2 rows, this method is more practical.
 
Upvote 0
Are there other functions that let you use multiple rows and columns more directly? Why can't the function just treat each new row/column like a new dimension in an array?
 
Upvote 0
Hi Jason,

Thankyou so much that works perfectly. My real use for the formula is on a much larger scale can you provide me with the workaround you mentioned for a larger range?
 
Upvote 0
One way to use a workaround is

=INDEX($K$15:$K$16,MIN(IF($F$15:$J$16=B16,(ROW($K$15:$K$16)-ROW($K$15))+1)))

The formula must be array confirmed using Shift Ctrl Enter.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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