If function help Newbie
Closed
Michael32744
Posts
2
Registration date
Saturday 6 August 2016
Status
Member
Last seen
6 August 2016
-
6 Aug 2016 à 13:00
fdibbins Posts 33 Registration date Sunday 19 June 2016 Status Contributor Last seen 20 November 2016 - 7 Aug 2016 à 19:21
fdibbins Posts 33 Registration date Sunday 19 June 2016 Status Contributor Last seen 20 November 2016 - 7 Aug 2016 à 19:21
Related:
- If function help Newbie
- Hard drive function - Guide
- Lan card function - Guide
- Iserror function in excel with vlookup - Guide
- Vba find function - Guide
- Insert key function - Guide
2 responses
fdibbins
Posts
33
Registration date
Sunday 19 June 2016
Status
Contributor
Last seen
20 November 2016
1
6 Aug 2016 à 19:29
6 Aug 2016 à 19:29
If you only have a few options...
=CHOOSE(MATCH(A1,{"A1","B2","C3"},0),1,3,2)
If you have a bunch, make a small table showing the code and the vslue, then use vlookup()
=CHOOSE(MATCH(A1,{"A1","B2","C3"},0),1,3,2)
If you have a bunch, make a small table showing the code and the vslue, then use vlookup()
fdibbins
Posts
33
Registration date
Sunday 19 June 2016
Status
Contributor
Last seen
20 November 2016
1
7 Aug 2016 à 19:21
7 Aug 2016 à 19:21
Did not mean to overwhelm you, and did not know your skill level, so I was waiting for you to reply.
So, you have a bunch of options?
Make a small table somewhere, with 2 columns, 1 with the option in the 1st column, and the value for that option in the 2nd column.
column Y...column Z
aa...1
bb...2
cc...3
dd...4
Once you have that, you can use VLOOKUP in the cell where you want the answer to be.
=vlookup(A1,$Y$1:$Z$4,2,0)
Assuming the option you want is in A1.
That translates to...
Find the contents of A1 in the range Y1:Z4, when you find it, give me the value of the 2nd column. The 0 tells excel you want an exact match
So, you have a bunch of options?
Make a small table somewhere, with 2 columns, 1 with the option in the 1st column, and the value for that option in the 2nd column.
column Y...column Z
aa...1
bb...2
cc...3
dd...4
Once you have that, you can use VLOOKUP in the cell where you want the answer to be.
=vlookup(A1,$Y$1:$Z$4,2,0)
Assuming the option you want is in A1.
That translates to...
Find the contents of A1 in the range Y1:Z4, when you find it, give me the value of the 2nd column. The 0 tells excel you want an exact match
6 Aug 2016 à 22:56
Michael