Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 61
Default Getting a Result in vlookup dependent on another formula

i am trying to get vlookup to look up the result of a formula in A1 but i
keep getting an error n/a. the formula in a one is as follows.

=IF(Saturday!C1=6,Saturday!D1,IF(Saturday!C1=5,Sat urday!E1,IF(Saturday!C1=4,Saturday!F1,IF(Saturday! C1=3,Saturday!G1,IF(Saturday!C1=2,Saturday!H1,IF(S aturday!C1=1,Saturday!I1,Saturday!B1))))))

Resulting in the date for saturday of the current week. 1-Sep
and the formula in B2 is as follows.

=VLOOKUP($A$1,$A$34:$J$76,10,FALSE)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Getting a Result in vlookup dependent on another formula

You could simplify the IF:

=IF(Saturday!C1=7,Saturday!B1,OFFSET(Saturday!$C$1 ,,7-Saturday!C1))

The N/A means there is no match: are all fields (A34:A76) formatted as date?
Is A1 formatted as Date?

"jhyatt" wrote:

i am trying to get vlookup to look up the result of a formula in A1 but i
keep getting an error n/a. the formula in a one is as follows.

=IF(Saturday!C1=6,Saturday!D1,IF(Saturday!C1=5,Sat urday!E1,IF(Saturday!C1=4,Saturday!F1,IF(Saturday! C1=3,Saturday!G1,IF(Saturday!C1=2,Saturday!H1,IF(S aturday!C1=1,Saturday!I1,Saturday!B1))))))

Resulting in the date for saturday of the current week. 1-Sep
and the formula in B2 is as follows.

=VLOOKUP($A$1,$A$34:$J$76,10,FALSE)

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
Use formula result in vlookup billinr Excel Discussion (Misc queries) 1 June 6th 07 06:12 PM
Why do I get #NA as my result when I write a vlookup formula? trainer07 Excel Worksheet Functions 2 February 7th 07 01:13 AM
VLOOKUP FORMULA IS DISPLAYED AS THE RESULT tony Excel Discussion (Misc queries) 1 August 1st 06 05:39 AM
VLOOKUP result is not showing up - only the formula Linda Excel Worksheet Functions 10 December 21st 05 06:37 AM
Formula help. Different result dependent on answer martinco Excel Worksheet Functions 3 April 16th 05 04:40 PM


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