Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple Offset/Match formula returns "#N/A"

I have the following formula:
=-OFFSET(INPUT!$A$1,MATCH(April!$I$8,INPUT!$A$2:$A$3 9,0),MATCH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(I NPUT!$A$1,MATCH(April!$I$9,INPUT!$A$2:$A$39,0),MAT CH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(INPUT!$A$ 1,MATCH(April!$I$11,INPUT!$A$2:$A$39,0),MATCH(Apri l!A18,INPUT!$B$1:$AF$1,0))

If one of the Offset/Matches returns "#N/A", then the entire formula is
"#N/A". How can I fix it that if one (or two or three) returns "#N/A", I
still get the sum of the other two (or one or "0")?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Multiple Offset/Match formula returns "#N/A"

Put each segment in an individual cell then use a SUMIF on those cells.

=SUMIF(A1:A3,"<1E100")


--
Biff
Microsoft Excel MVP


"Jim McC" wrote in message
...
I have the following formula:
=-OFFSET(INPUT!$A$1,MATCH(April!$I$8,INPUT!$A$2:$A$3 9,0),MATCH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(I NPUT!$A$1,MATCH(April!$I$9,INPUT!$A$2:$A$39,0),MAT CH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(INPUT!$A$ 1,MATCH(April!$I$11,INPUT!$A$2:$A$39,0),MATCH(Apri l!A18,INPUT!$B$1:$AF$1,0))

If one of the Offset/Matches returns "#N/A", then the entire formula is
"#N/A". How can I fix it that if one (or two or three) returns "#N/A", I
still get the sum of the other two (or one or "0")?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Multiple Offset/Match formula returns "#N/A"

My solution is as follows (Using IF(ISNA)
=IF(ISNA(-OFFSET(INPUT!$A$1,MATCH(April!$I$8,INPUT!$A$2:$A$3 9,0),MATCH(April!A16,INPUT!$B$1:$AF$1,0))),0,-OFFSET(INPUT!$A$1,MATCH(April!$I$8,INPUT!$A$2:$A$3 9,0),MATCH(April!A16,INPUT!$B$1:$AF$1,0)))+IF(ISNA (OFFSET(INPUT!$A$1,MATCH(April!$I$9,INPUT!$A$2:$A$ 39,0),MATCH(April!A16,INPUT!$B$1:$AF$1,0))),0,OFFS ET(INPUT!$A$1,MATCH(April!$I$9,INPUT!$A$2:$A$39,0) ,MATCH(April!A16,INPUT!$B$1:$AF$1,0)))+IF(ISNA(OFF SET(INPUT!$A$1,MATCH(April!$I$11,INPUT!$A$2:$A$39, 0),MATCH(April!A16,INPUT!$B$1:$AF$1,0))),0,OFFSET( INPUT!$A$1,MATCH(April!$I$11,INPUT!$A$2:$A$39,0),M ATCH(April!A16,INPUT!$B$1:$AF$1,0)))-IF(ISNA(OFFSET(INPUT!$A$1,MATCH(April!$I$10,INPUT! $A$2:$A$39,0),MATCH(April!A16,INPUT!$B$1:$AF$1,0)) ),0,OFFSET(INPUT!$A$1,MATCH(April!$I$10,INPUT!$A$2 :$A$39,0),MATCH(April!A16,INPUT!$B$1:$AF$1,0)))


"Jim McC" wrote:

I have the following formula:
=-OFFSET(INPUT!$A$1,MATCH(April!$I$8,INPUT!$A$2:$A$3 9,0),MATCH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(I NPUT!$A$1,MATCH(April!$I$9,INPUT!$A$2:$A$39,0),MAT CH(April!A18,INPUT!$B$1:$AF$1,0))+OFFSET(INPUT!$A$ 1,MATCH(April!$I$11,INPUT!$A$2:$A$39,0),MATCH(Apri l!A18,INPUT!$B$1:$AF$1,0))

If one of the Offset/Matches returns "#N/A", then the entire formula is
"#N/A". How can I fix it that if one (or two or three) returns "#N/A", I
still get the sum of the other two (or one or "0")?

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
How to not count cells which contain a formula that returns " "? Fiona Excel Worksheet Functions 10 April 5th 23 02:53 PM
Formula for Multiple "IF's" or maybe "COUNTIF's"??? MM Lines Excel Discussion (Misc queries) 7 January 14th 08 08:30 AM
How do I use "offset" function in "array formula"? hongguang Excel Discussion (Misc queries) 3 April 4th 07 12:04 AM
Formula format in excel that returns an "error" if there is a blan Ken Proj mgr Excel Discussion (Misc queries) 5 April 12th 06 05:21 PM
"IF" formula returns zero or other incorrect number Pat K. Excel Worksheet Functions 6 December 6th 05 05:57 PM


All times are GMT +1. The time now is 05:58 PM.

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"