ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   return values (https://www.excelbanter.com/excel-worksheet-functions/205133-return-values.html)

JAZ

return values
 
hello there

i wonder if anybody could help
i have a list of example below:

cell a, cell b, cell c, cell e
1 jez 1 jez
2 jack
3 john
4 jaz

i want to create a function which if i enter 1 on cell c1 then returns jez
on cell d but i want to search it through a list basicaly, if = 1 then jez,
if = 2 jack etc

your help would be much appreciate it

thanks
jez


T. Valko

return values
 
Try one of these:

=VLOOKUP(C1,A1:B4,2,0)

=INDEX(B1:B4,C1)

--
Biff
Microsoft Excel MVP


"jaz" wrote in message
...
hello there

i wonder if anybody could help
i have a list of example below:

cell a, cell b, cell c, cell e
1 jez 1 jez
2 jack
3 john
4 jaz

i want to create a function which if i enter 1 on cell c1 then returns jez
on cell d but i want to search it through a list basicaly, if = 1 then
jez,
if = 2 jack etc

your help would be much appreciate it

thanks
jez




RagDyeR

return values
 
One way:

=CHOOSE(C1,"jez","jack","john","jaz")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"jaz" wrote in message
...
hello there

i wonder if anybody could help
i have a list of example below:

cell a, cell b, cell c, cell e
1 jez 1 jez
2 jack
3 john
4 jaz

i want to create a function which if i enter 1 on cell c1 then returns jez
on cell d but i want to search it through a list basicaly, if = 1 then

jez,
if = 2 jack etc

your help would be much appreciate it

thanks
jez




All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com