Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default If functions Looking at ranges

You will get #N/A if the match fails.

=IF(ISNA(INDEX('[Actual 2007.xls]Sheet1'!$C$2:$C$369,MATCH(1,(D41='[Actual
2007.xls]eet1'!$A$2:$A$3690)*(C41='[Actual
2007.xls]Sheet1'!$B$2:$B$3690),0))),"",INDEX('[Actual
2007.xls]Sheet1'!$C$2:$C$369,MATCH(1,(D41='[Actual
2007.xls]eet1'!$A$2:$A$3690)*(C41='[Actual 2007.xls]Sheet1'!$B$2:$B$3690),0)))

will return blank if #N/A occurs.

Are you sure the C41 & D41 match is TRUE in your test?

"Baba" wrote:

Topper,

Thanks for your response.
You have correctly assesed what I was tyring to do, but the formula you have
given should have worked, but it has not. It has given a result of #N/A.
Any ideas?

Tunde

"Toppers" wrote:

No ... the IF function is wrong: you need to use MATCH.

What exactly are you trying to do:

If D41 is found in column A and C41 is found in Column B, then lookup up the
value in Column C based on C41 as the search?

Try this entered with Ctrl+Shift+Enter

=INDEX('[Actual 2007.xls]Sheet1'!$C$2:$C$369,MATCH(1,(D41='[Actual
2007.xls]eet1'!$A$2:$A$3690)*(C41='[Actual 2007.xls]Sheet1'!$B$2:$B$3690),0))

It assumes D41 & C41 are found and will return (row) value in column C where
C41 & D41 coincide.

HTH

"Baba" wrote:

All,

I hope someone has an answer for this.

I am trying to get a formula based on the If function, and within this is a
vlookup function. i.e nested. The formula i have presently is coming with the
result false,
the formula is as follows
IF(D41='[Actual 2007.xls]Sheet1'!$A$2:$A$3690,IF(C41='[Actual
2007.xls]Sheet1'!$B$2:$B$3690,VLOOKUP(C41,'[Actual
2007.xls]Sheet1'!$B$2:$F$3691,2,FALSE))

Question, the IF function can it give a result if it is pointed at a range.

Thanks

Tunde

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 functions and Names Ranges JaB Excel Discussion (Misc queries) 1 January 18th 07 12:30 PM
DATE RANGES and other functions, formulas isrdebie Excel Worksheet Functions 7 August 21st 06 04:49 AM
Copy and SUM functions with different ranges Manos Excel Worksheet Functions 1 July 1st 06 08:16 AM
Confused about arrays and ranges in functions Llurker Excel Worksheet Functions 0 July 7th 05 05:44 AM
if functions with more than 7 ifs (ranges are possible?) irwinko Excel Worksheet Functions 3 May 17th 05 12:57 PM


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