Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default How to do this VLOOKUP OR FORMULA.

In A1 a number is enter : let's say 1 to 120.
Results in B1 will be :
if A1 = 1,2,3,11,12,13,21,23 OR 25 then B1 will show GRAPE
if A1 = 4,5,6,7,8,9,10 OR... then B1 will show LEMON
Etcetera.
Could somebody help me to figure it out?
This is just an example. There numbers with 4 digits and they
do not have any pattern or consecutivity, but there are 12 fruit
that I need to appear in B1 depending on the numbers in A1.
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to do this VLOOKUP OR FORMULA.

There numbers ... and they do not have any pattern or consecutivity

Use VLOOKUP

See this:

http://contextures.com/xlFunctions02.html

--
Biff
Microsoft Excel MVP


"Learning Excel" wrote in message
...
In A1 a number is enter : let's say 1 to 120.
Results in B1 will be :
if A1 = 1,2,3,11,12,13,21,23 OR 25 then B1 will show GRAPE
if A1 = 4,5,6,7,8,9,10 OR... then B1 will show LEMON
Etcetera.
Could somebody help me to figure it out?
This is just an example. There numbers with 4 digits and they
do not have any pattern or consecutivity, but there are 12 fruit
that I need to appear in B1 depending on the numbers in A1.
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default How to do this VLOOKUP OR FORMULA.

Vlookup can solve this problem

Example
In d1 = have the number 1
d2 = have the number 4
e1 = grape
e2 = lemon

=vlookup(a1,d1:e2,2,false)

adjust the range d1:e2 to suit the your needs.

the false is needed to make sure that you have an exact match....
--
Wag more, bark less


"Learning Excel" wrote:

In A1 a number is enter : let's say 1 to 120.
Results in B1 will be :
if A1 = 1,2,3,11,12,13,21,23 OR 25 then B1 will show GRAPE
if A1 = 4,5,6,7,8,9,10 OR... then B1 will show LEMON
Etcetera.
Could somebody help me to figure it out?
This is just an example. There numbers with 4 digits and they
do not have any pattern or consecutivity, but there are 12 fruit
that I need to appear in B1 depending on the numbers in A1.
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default How to do this VLOOKUP OR FORMULA.

Thanks Brad and T. Valko for the lesson.
Interesting website T.
Well put Brad.


--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"Brad" wrote:

Vlookup can solve this problem

Example
In d1 = have the number 1
d2 = have the number 4
e1 = grape
e2 = lemon

=vlookup(a1,d1:e2,2,false)

adjust the range d1:e2 to suit the your needs.

the false is needed to make sure that you have an exact match....
--
Wag more, bark less


"Learning Excel" wrote:

In A1 a number is enter : let's say 1 to 120.
Results in B1 will be :
if A1 = 1,2,3,11,12,13,21,23 OR 25 then B1 will show GRAPE
if A1 = 4,5,6,7,8,9,10 OR... then B1 will show LEMON
Etcetera.
Could somebody help me to figure it out?
This is just an example. There numbers with 4 digits and they
do not have any pattern or consecutivity, but there are 12 fruit
that I need to appear in B1 depending on the numbers in A1.
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default How to do this VLOOKUP OR FORMULA.

You're welcome.
--
Wag more, bark less


"Learning Excel" wrote:

Thanks Brad and T. Valko for the lesson.
Interesting website T.
Well put Brad.


--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.


"Brad" wrote:

Vlookup can solve this problem

Example
In d1 = have the number 1
d2 = have the number 4
e1 = grape
e2 = lemon

=vlookup(a1,d1:e2,2,false)

adjust the range d1:e2 to suit the your needs.

the false is needed to make sure that you have an exact match....
--
Wag more, bark less


"Learning Excel" wrote:

In A1 a number is enter : let's say 1 to 120.
Results in B1 will be :
if A1 = 1,2,3,11,12,13,21,23 OR 25 then B1 will show GRAPE
if A1 = 4,5,6,7,8,9,10 OR... then B1 will show LEMON
Etcetera.
Could somebody help me to figure it out?
This is just an example. There numbers with 4 digits and they
do not have any pattern or consecutivity, but there are 12 fruit
that I need to appear in B1 depending on the numbers in A1.
THANKS.
--
Socrates said: I only know, I don''''''''t know nothing.
I say : I don''''''''t even know, I don''''''''t
know nothing.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alternative formula to the vlookup formula? Victor Excel Worksheet Functions 2 May 12th 08 04:38 PM
convert vlookup formula to link formula AFA Excel Worksheet Functions 0 February 20th 08 04:24 AM
Using VLOOKUP formula Mahadevan Swamy Excel Discussion (Misc queries) 5 June 28th 07 08:47 PM
Excel 2002 VLOOKUP formula or other formula Serge Excel Discussion (Misc queries) 4 February 26th 07 03:56 PM
how to use vlookup formula kirky Excel Worksheet Functions 2 January 25th 05 05:23 PM


All times are GMT +1. The time now is 09:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"