Look up

kaldag

New Member
Joined
Jun 4, 2002
Messages
15
I have column A that has values of 5,8,9,10,24 and I would like to have another column that shows if 5 is in column A then put a letter P in column B and if the value in A is 24 put a letter P in column B. I have been trying to use the vlookup function but don't quite sure why not working. I have three letters I need to use in column B.

Thanks

Ken
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
On 2002-09-27 13:40, kaldag wrote:
I have column A that has values of 5,8,9,10,24 and I would like to have another column that shows if 5 is in column A then put a letter P in column B and if the value in A is 24 put a letter P in column B. I have been trying to use the vlookup function but don't quite sure why not working. I have three letters I need to use in column B.

Thanks

Ken

In B2 enter & copy down:

=IF(OR(A2={5,24}),"P","")

Is this what you're looking for?
 
Upvote 0
place the following formula in B1, and copy it down to your last row of data:

=IF(OR(A1=5,A1=24)=TRUE,"P","")

is this what you are trying to do?

kevin
 
Upvote 0

Forum statistics

Threads
1,219,030
Messages
6,145,878
Members
450,654
Latest member
lorento

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