Simple question

smittycft99

Board Regular
Joined
Apr 16, 2002
Messages
128
I have a drop menu with the values, "high","medium","low". I want to insert a value into another cell dependent on what the user picks. ie. if they pick "high", place a "1" value in cell C7.
 

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).
Put something like:

=if(A1="High",1,if(A1="Medium",2,if(A1="Low",3,"")))

That's if your drop down is in cell A1. If you just want to count the number of times that High, Low or Medium comes up try:

=countif(your range,"High") etc...

Audiojoe
 
Upvote 0
That's quite all right fella. I had some beers at lunch so I'm quite in the mood for helping people this afternoon

Out of interest, it took me nearly ten attempts to type this. Man, that was good beer
 
Upvote 0
On 2002-05-03 07:29, Audiojoe wrote:

Put something like:

=if(A1="High",1,if(A1="Medium",2,if(A1="Low",3,"")))

That's if your drop down is in cell A1. If you just want to count the number of times that High, Low or Medium comes up try:

=countif(your range,"High") etc...

Audiojoe

Beers at lunchtime ?

Outrageous.

Audiojoe,

if you get stuck with nested ifs like I always do, try this sort of approach :

=VLOOKUP(A1,{1,"High";2,"Medium";3,"Low"},2,0)

(it doesn't take care of the N/A in this particular posting, but you can catch my drift...)

always handy

:)
This message was edited by Chris Davison on 2002-05-03 13:15
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,142
Members
448,551
Latest member
Sienna de Souza

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