Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
rmeister
 
Posts: n/a
Default Need Help With Array Formula


I have a formula that looks like this:
{=MIN(IF(SHEET1!A2:A400=SHEET2!A4,SHEET1!B2:B400)) }

What I would like to do is instead of saying A2:A400 and B2:B400 I
would like to do A:A and B:B. When I do this my results turn to zero
because the cells are blank beyond 400.

Is there a way I can write the formula to ignore the blank cells.

Any Help Would be appreciated!!!


--
rmeister
------------------------------------------------------------------------
rmeister's Profile: http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=498681

  #2   Report Post  
Posted to microsoft.public.excel.misc
Stephen
 
Posts: n/a
Default Need Help With Array Formula

"rmeister" wrote in
message ...

I have a formula that looks like this:
{=MIN(IF(SHEET1!A2:A400=SHEET2!A4,SHEET1!B2:B400)) }

What I would like to do is instead of saying A2:A400 and B2:B400 I
would like to do A:A and B:B. When I do this my results turn to zero
because the cells are blank beyond 400.

Is there a way I can write the formula to ignore the blank cells.

Any Help Would be appreciated!!!

rmeister


I don't think it's anything to do with blank cells; try a blank cell in the
fixed range of the formula above - it works perfectly well. The problem is
(if I remember correctly) that you can't use whole column (or whole row)
references in an array formula. You could use A2:A65535.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Need Help With Array Formula

1. Since this is an array formula you cannot use A:A so you need to specify
something (A2:A65535)

2. While it is true that blank cells are seen as zero, in your case that
would only happen if the criteria in A4 is blank or if you have a criteria
in A4 and that criteria is found in A2:A400 while any adjacent cell in
B2:B400 is blank, if that's the case

=MIN(IF((Sheet1!A2:A400=Sheet2!A4)*(Sheet1!B2:B400 <""),Sheet1!B2:B400))


--

Regards,

Peo Sjoblom





"rmeister" wrote in
message ...

I have a formula that looks like this:
{=MIN(IF(SHEET1!A2:A400=SHEET2!A4,SHEET1!B2:B400)) }

What I would like to do is instead of saying A2:A400 and B2:B400 I
would like to do A:A and B:B. When I do this my results turn to zero
because the cells are blank beyond 400.

Is there a way I can write the formula to ignore the blank cells.

Any Help Would be appreciated!!!


--
rmeister
------------------------------------------------------------------------
rmeister's Profile:

http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=498681



  #4   Report Post  
Posted to microsoft.public.excel.misc
rmeister
 
Posts: n/a
Default Need Help With Array Formula


Thank all of you for your help.

Last Question,
If the criteria does not match the #DIV! appears as the result. How
can I write the formula to return a $0 if no criteria is found?


--
rmeister
------------------------------------------------------------------------
rmeister's Profile: http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=498681

  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Need Help With Array Formula

#DIV appears if you use average or for instance divide a value with a blank
value/0 not by using the MIN function, if you are using average
then you can use the same technique (range<"") or if there are no values
at all you can use something like

=IF(COUNTBLANK(A1:A10)=10,"",your formula




--

Regards,

Peo Sjoblom

"rmeister" wrote in
message ...

Thank all of you for your help.

Last Question,
If the criteria does not match the #DIV! appears as the result. How
can I write the formula to return a $0 if no criteria is found?


--
rmeister
------------------------------------------------------------------------
rmeister's Profile:

http://www.excelforum.com/member.php...o&userid=30163
View this thread: http://www.excelforum.com/showthread...hreadid=498681





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
Array formula returning wrong results TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 19th 05 10:29 AM
Suppress array formula #NA [email protected] Excel Worksheet Functions 4 November 15th 05 05:17 PM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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