Lookup Brain Twister!

mrowe

Board Regular
Joined
Feb 17, 2002
Messages
232
I'm having trouble getting my head around this one....

Col A is the number, Col B is the Code, Col 3 is a flag.

What I want to do is if the code = SLMON MEDIA or SLMONSTER is in Col B look at the number next to it in Col A and tell me if that number appears in the list.

A clearer example is 293957 has SLMON MEDIA and SLREV against it, becasue SLMON MEDIA is there I don't want to see it. If if just had SLREV I do want to see it.

Thanks in advance
Matt

293950__SLTRAD PROD 1
293952__SLTRAD PROD 1
293955__SLTRAD PROD 1
293955__SLTRAD PROD 1
293956__SLMON MEDIA 2
293957__SLMON MEDIA 2
293957__SLREV 1
293957__SLTRAD PROD 1
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
can you make it a bit clearer what you want excel to do ?

do you want it to tell you something or do you want it to hide something ?
 
Upvote 0
I am not sure what you require.

You can consider

=IF(B3=B2,B3,"")
 
Upvote 0
On 2002-03-20 05:43, mrowe wrote:
I'm having trouble getting my head around this one....

Col A is the number, Col B is the Code, Col 3 is a flag.

What I want to do is if the code = SLMON MEDIA or SLMONSTER is in Col B look at the number next to it in Col A and tell me if that number appears in the list.

A clearer example is 293957 has SLMON MEDIA and SLREV against it, becasue SLMON MEDIA is there I don't want to see it. If if just had SLREV I do want to see it.

Thanks in advance
Matt

293950__SLTRAD PROD 1
293952__SLTRAD PROD 1
293955__SLTRAD PROD 1
293955__SLTRAD PROD 1
293956__SLMON MEDIA 2
293957__SLMON MEDIA 2
293957__SLREV 1
293957__SLTRAD PROD 1

Hi,

In column 3 (I am starting in row 3), try
=IF(OR(B3="SLMON MEDIA",B3="SLMONSTER"),A3,"")
and copy down your list

The hardcoding of the lookup names can be references, too.

HTH,
Jay
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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