Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Embetting Vlookup in IF statement

I want to look at a cell and if it has a certain value, return another
value in my target cell but if it has some other value, I what excel to
look at a table and find the value and return the cell value?

For example. I have a cell where the value is SP. If the value is SP,
then put Super Puppy in my target cell. But if excel looks at the cell
and it is not SP, but TO, I want excel to go to a table and lookup a
then value in the cell (TO) and put Totally Outrageous in that cell. If
the cell has something else, it would lookup that value and place it in
that cell.

Anyone know how to do this?

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Embetting Vlookup in IF statement

Try something like

=IF(A1="SP","Super Puppy",VLOOKUP(A1,B1:C10,2,FALSE))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



wrote in message
oups.com...
I want to look at a cell and if it has a certain value, return
another
value in my target cell but if it has some other value, I what
excel to
look at a table and find the value and return the cell value?

For example. I have a cell where the value is SP. If the value
is SP,
then put Super Puppy in my target cell. But if excel looks at
the cell
and it is not SP, but TO, I want excel to go to a table and
lookup a
then value in the cell (TO) and put Totally Outrageous in that
cell. If
the cell has something else, it would lookup that value and
place it in
that cell.

Anyone know how to do this?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Embetting Vlookup in IF statement

Great. Thanks Chris. I got that to work.

John

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Embetting Vlookup in IF statement

Thank you Dave. I am new to this stuff and it is exciting to see it
work.


JOhn



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
IF Statement or VLOOKUP HL Excel Discussion (Misc queries) 1 June 1st 10 06:45 PM
Vlookup, if statement, maybe an and statement Jennifer Excel Discussion (Misc queries) 1 February 26th 10 03:30 AM
vlookup or if statement andy Excel Worksheet Functions 4 August 13th 07 03:12 PM
If Statement with VLookup Shams Excel Worksheet Functions 3 October 16th 06 07:16 PM
if statement with vlookup choice[_2_] Excel Programming 1 October 30th 04 12:44 AM


All times are GMT +1. The time now is 03:19 AM.

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"