Lookup, but which type?

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
Hi,

Before I have to call in the builders to replace the wall I'm banging my head on, can someone point me in the right direction to solving this?

I don't want the actual formula (yet), just a pointer.
I'm probably missing the bl**dy obvious here.....


Excel Workbook
ABCDEFGHIJK
1***********
2DogCatPigHorseFishPandaRatMouseMooseCowBull
3***********
4*******FishPanda**
Sheet3


If I type Fish in H4, which type of formula do I require in I4 to return Panda?
Like wise If I type Dog in H4 I want to return Cat in I4.

I look forward to the sniggers and help ;)

Thanks

Ak
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
For me, INDEX with a MATCH nested into it.
 
Upvote 0
Hi,

Before I have to call in the builders to replace the wall I'm banging my head on, can someone point me in the right direction to solving this?

I don't want the actual formula (yet), just a pointer.
I'm probably missing the bl**dy obvious here.....


Excel Workbook
ABCDEFGHIJK
1***********
2DogCatPigHorseFishPandaRatMouseMooseCowBull
3***********
4*******FishPanda**
Sheet3


If I type Fish in H4, which type of formula do I require in I4 to return Panda?
Like wise If I type Dog in H4 I want to return Cat in I4.

I look forward to the sniggers and help ;)

Thanks

Ak
Assuming that a look up value occurs once at most in A2:K2...

=IF(LOOKUP(REPT("z",255),A2:K2)=H4,"",INDEX(A2:K2,MATCH(H4,A2:K2,0)+1))
 
Upvote 0
Hi,

Before I have to call in the builders to replace the wall I'm banging my head on, can someone point me in the right direction to solving this?

I don't want the actual formula (yet), just a pointer.
I'm probably missing the bl**dy obvious here.....


Excel Workbook
ABCDEFGHIJK
1***********
2DogCatPigHorseFishPandaRatMouseMooseCowBull
3***********
4*******FishPanda**
Sheet3


If I type Fish in H4, which type of formula do I require in I4 to return Panda?
Like wise If I type Dog in H4 I want to return Cat in I4.

I look forward to the sniggers and help ;)

Thanks

Ak
TRy this...

=INDEX(A2:K2,MATCH(H4,A2:K2,0)+1)
 
Upvote 0
Hey hey,

I've used this without checking the answers given.....

=INDEX(A2:K2,MATCH(H4,A2:K2,0)+1)

I kept missing off the +1 :rofl:

Ak

Thanks for the replies and answers people, I managed to sort it out myself, thanks.

Aladin what does the first part of your formula have to do with the result?
Is there a joke in there?

Thanks all.

Ak
 
Last edited:
Upvote 0
Hey hey,

I've used this without checking the answers given.....

=INDEX(A2:K2,MATCH(H4,A2:K2,0)+1)

I kept missing off the +1 :rofl:

Ak

Thanks for the replies and answers people, I managed to sort it out myself, thanks.

Aladin what does the first part of your formula have to do with the result?
Is there a joke in there?

Thanks all.

Ak

Yes, it's a joke.:laugh: Just enter Bull in H4...
 
Upvote 0
Aladin's suggestion was to return a "blank" cell if H4 happened to be found in K2.
 
Upvote 0
Ah,
and here's me thinking that I'm going to get 255 z's, :rofl:

Thanks for your time people.

Now for some DIY!!
Anyone have any pollyfilla?

Ak
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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