Data validation

Tornado1981

Board Regular
Joined
Apr 1, 2010
Messages
248
I have a cell containing data validation list and what i want to do is that when i choose the 1st value from this list .. a number (for examole 1) appears in another blank cell .. and if i choose the 2nd value from the list .. another number (let's say 2) appears in the blank cell
So how to use the if statement in a cell that contains a data validation ?!!
i need ur help please
thank u
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I have a cell containing data validation list and what i want to do is that when i choose the 1st value from this list .. a number (for examole 1) appears in another blank cell .. and if i choose the 2nd value from the list .. another number (let's say 2) appears in the blank cell
So how to use the if statement in a cell that contains a data validation ?!!
i need ur help please
thank u
See this...

http://contextures.com/xlFunctions02.html
 
Upvote 0
sorry .. i didn't catch it
which section exactly is the solution of my problem ?
Try this...

Create a 2 column table. The left column will contain the items that are in your drop down list. The right column contains the value that corresponds to the item. Like this:

Book1
FG
1ItemValue
2Item146
3Item267
4Item37
5Item463
6Item518
7Item65
8Item710
9Item853
10Item927
Sheet1

Now, let's assume cell A1 contains a drop down list that lists the items from the left column of the table.

Enter this formula in B1:

=IF(A1="","",VLOOKUP(A1,F2:G10,2,0))

So, if you select Item5 from the drop down list the formula in B1 will return 18.
 
Upvote 0
thank u so much
but what if :
when i choose a value from the list .. a number (e.g 1) appears in a blank cell .. and when i choose another value from the list .. the same number (1) appears in another blank cell ??
 
Upvote 0
thank u so much
but what if :
when i choose a value from the list .. a number (e.g 1) appears in a blank cell .. and when i choose another value from the list .. the same number (1) appears in another blank cell ??
Sorry, I don't understand what you want to do. :confused:
 
Upvote 0
Cell A1 contains the drop list

Drop list contains :
Item1
Item2
Item3
Item4
Item5

If i choose Item1 .. in cell C1 appears "1"
If i choose Item2 .. in cell D1 appears also "1"
If i choose Item5 .. in cell G1 appears also "1"
 
Upvote 0
Cell A1 contains the drop list

Drop list contains :
Item1
Item2
Item3
Item4
Item5

If i choose Item1 .. in cell C1 appears "1"
If i choose Item2 .. in cell D1 appears also "1"
If i choose Item5 .. in cell G1 appears also "1"
You'll need VBA code to do this. I'm not much of a programmer so someone else will need to help you.

Good luck! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,855
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