Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 20
Default vlookups and if statement

I am doing a simple vlookup, but need to search another column and if I find
a match change the lookup result.
example
vlookup(a2,tab1a2:b50,3). if A3 = 25, then I need to change the lookup value
to reflect the if statement result.
Any help would be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default vlookups and if statement

excelrookie wrote:
I am doing a simple vlookup, but need to search another column and if I find
a match change the lookup result.
example
vlookup(a2,tab1a2:b50,3). if A3 = 25, then I need to change the lookup value
to reflect the if statement result.
Any help would be appreciated


What IF statement, and what is A3?

=iF(vlookup(a2,tab1a2:b50,3)=25, [alternate lookup], [something else])

?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 257
Default vlookups and if statement

While you're answering smartin's very relevant questions, allow me to point
out that the sample formula you typed out for us won't work. Even assumping
an extra bang ("!"), like this:

VLOOKUP(A2,Tab1!A2:B50,3)

....the third argument says to take a value from the third column, yet you
specified only a two-column table. In my version of Excel, at least, this
returns the #REF error.

--- "smartin" wrote:
What IF statement, and what is A3?

=iF(vlookup(a2,tab1a2:b50,3)=25, [alternate lookup], [something else])

--- excelrookie wrote:
I am doing a simple vlookup, but need to search another column and if I find
a match change the lookup result. example:

vlookup(a2,tab1a2:b50,3).

if A3 = 25, then I need to change the lookup value to reflect the if
statement result.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default vlookups and if statement

Bob Bridges wrote:
While you're answering smartin's very relevant questions, allow me to point
out that the sample formula you typed out for us won't work. Even assumping
an extra bang ("!"), like this:

VLOOKUP(A2,Tab1!A2:B50,3)

...the third argument says to take a value from the third column, yet you
specified only a two-column table. In my version of Excel, at least, this
returns the #REF error.


Bob, Thanks for looking over my overlooking the obvious (^:
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
Dependent vlookups - nested vlookups (maybe) Maniv Excel Worksheet Functions 1 April 22nd 08 07:40 PM
multiple vlookups in one statement Dave Excel Worksheet Functions 3 January 30th 08 06:56 PM
Vlookups UlvaZell Excel Worksheet Functions 4 August 30th 07 09:00 PM
VLOOKUPS Brett Excel Worksheet Functions 5 June 22nd 06 02:50 PM
vlookups T Excel Discussion (Misc queries) 4 May 13th 06 12:15 PM


All times are GMT +1. The time now is 06:50 PM.

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

About Us

"It's about Microsoft Excel"