Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Newbie needing help with nested VLOOKUP IF function....

Hi, folks.

I'm looking for a bit of help with this one, as it's got me completely stumped. I've got a large table of data, and I'm using a VLOOKUP function to retrieve delivery dates for items, but I have two columns for delivery dates - one entitled Delivery Date, and one New Delivery Date. As much as I'd like to be able to change this, the system has been in place so long now that it'd be a complete uphill struggle.

What I've been doing is trying to use an IF command to say, "if the date retrieved from the VLOOKUP function is missing from the 'New Delivery Date' column, take the one from the 'Delivery Date' column." The formula ended up looking a little like:

=VLOOKUP(A2,B3:K8,IF(?2="",?1,?2),FALSE)

(?1 being the data from the 'Delivery Date' column, ?2 the 'New Delivery Date' column, and the "" being used to designate that the entry is blank.)

The trouble is, I can't work out how to get Excel to look at the column values in the relevant columns for each instance of the VLOOKUP function.

Can anyone help? This is probably quite elementary to most of you folks, so please do excuse me if that's the case, I'm quite new to all this!

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Newbie needing help with nested VLOOKUP IF function....

On Jan 24, 1:50*am, Draven wrote:
Hi, folks.

I'm looking for a bit of help with this one, as it's got me completely
stumped. *I've got a large table of data, and I'm using a VLOOKUP
function to retrieve delivery dates for items, but I have two columns
for delivery dates - one entitled Delivery Date, and one New Delivery
Date. *As much as I'd like to be able to change this, the system has
been in place so long now that it'd be a complete uphill struggle.

What I've been doing is trying to use an IF command to say, "if the date
retrieved from the VLOOKUP function is missing from the 'New Delivery
Date' column, take the one from the 'Delivery Date' column." *The
formula ended up looking a little like:

=VLOOKUP(A2,B3:K8,IF(?2=\"\",?1,?2),FALSE)

(?1 being the data from the 'Delivery Date' column, ?2 the 'New Delivery
Date' column, and the "" being used to designate that the entry is
blank.)

The trouble is, I can't work out how to get Excel to look at the column
values in the relevant columns for each instance of the VLOOKUP
function.

Can anyone help? *This is probably quite elementary to most of you
folks, so please do excuse me if that's the case, I'm quite new to all
this!

Thanks!

--
Draven


The following isn't elegant, but it seems to work:
=IF(VLOOKUP(A2,B3:K8,4,FALSE)="",
VLOOKUP(A2,B3:K8,5,FALSE),
VLOOKUP(A2,B3:K8,4,FALSE))
In my example, the column offsets 4 and 5 are for "new delivery date"
and "delivery date" respectively.

Modify as needed.
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 VLOOKUP Nested function Paul LeBlanc Excel Worksheet Functions 5 September 26th 06 02:49 PM
Nested Vlookup and IF function???? Simon Lloyd Excel Worksheet Functions 6 May 14th 06 10:21 PM
student needing help w/vlookup function grading criteria Julie Excel Worksheet Functions 2 October 21st 05 01:13 PM
Newbie - needing advice on formatting webform data antfarm Excel Discussion (Misc queries) 6 July 14th 05 12:38 PM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM


All times are GMT +1. The time now is 12:25 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"