A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem with a MIN function



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2004, 10:27 AM
Andy B
external usenet poster
 
Posts: n/a
Default Problem with a MIN function

Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also contain blanks. I don't
understand why this formula does not return what I want!! I'm trying to get
the earliest date in A46:A52 where there is a blank in the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the formula bar to view
each part) and it's got me beat!

--
Andy.



  #2  
Old June 16th, 2004, 10:39 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default Problem with a Min function

Hi
try the arraz formula
=MIN(IF((A46:A520)*(B46:B52=""),A46:A52))

-----Original Message-----
Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also

contain blanks. I don't
understand why this formula does not return what I want!!

I'm trying to get
the earliest date in A46:A52 where there is a blank in

the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the

formula bar to view
each part) and it's got me beat!

--
Andy.



.

  #3  
Old June 16th, 2004, 10:51 AM
Andy B
external usenet poster
 
Posts: n/a
Default Problem with a Min function

Cheers Frank. (I still don't know why my formula doesn't work!)

--
Andy.


"Frank Kabel" wrote in message
...
Hi
try the arraz formula
=MIN(IF((A46:A520)*(B46:B52=""),A46:A52))

-----Original Message-----
Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also

contain blanks. I don't
understand why this formula does not return what I want!!

I'm trying to get
the earliest date in A46:A52 where there is a blank in

the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the

formula bar to view
each part) and it's got me beat!

--
Andy.



.



  #4  
Old June 16th, 2004, 12:18 PM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default Problem with a MIN function

On Wed, 16 Jun 2004 10:27:25 +0100, "Andy B"
wrote:

Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also contain blanks. I don't
understand why this formula does not return what I want!! I'm trying to get
the earliest date in A46:A52 where there is a blank in the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the formula bar to view
each part) and it's got me beat!


You received a working formula from Andy.

You didn't say how your formula was not working, but I expect it is returning a
zero (0).

For example, if any cell in the range A46:A52 is blank, then A46:A520 will
return FALSE which will evaluate to 0. '0' times your second part also equals
'0'. The MIN function will, naturally, see '0' as being less than any other
factor (assuming there are no negative numbers).


--ron
  #5  
Old June 16th, 2004, 12:28 PM
Andy B
external usenet poster
 
Posts: n/a
Default Problem with a MIN function

Thanks Ron. A normal MIN function must ignore blanks, but my formula must
count them as zeroes.

--
Andy.


"Ron Rosenfeld" wrote in message
...
On Wed, 16 Jun 2004 10:27:25 +0100, "Andy B"
wrote:

Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also contain blanks. I

don't
understand why this formula does not return what I want!! I'm trying to

get
the earliest date in A46:A52 where there is a blank in the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the formula bar to

view
each part) and it's got me beat!


You received a working formula from Andy.

You didn't say how your formula was not working, but I expect it is

returning a
zero (0).

For example, if any cell in the range A46:A52 is blank, then A46:A520

will
return FALSE which will evaluate to 0. '0' times your second part also

equals
'0'. The MIN function will, naturally, see '0' as being less than any

other
factor (assuming there are no negative numbers).


--ron



  #6  
Old June 16th, 2004, 03:41 PM
Hi Andy
external usenet poster
 
Posts: n/a
Default Problem with a MIN function

Simple explanation. I would assume you get a result of 1-1-
1900?

Reson: if you first condition (A46:A520) is not met this
return zero. So the minimum value is zero.
Your formula may work if you have valid dates in all rows

-----Original Message-----
Hi all

Please can someone explain to me why this doesn't work:
=MIN((A46:A520)*(A46:A52+B46:B52)) array-entered
I've got dates in both ranges - and both ranges also

contain blanks. I don't
understand why this formula does not return what I want!!

I'm trying to get
the earliest date in A46:A52 where there is a blank in

the corresponding
cell in B46:B52.
I've checked the formula (including the F9 option in the

formula bar to view
each part) and it's got me beat!

--
Andy.



.

  #7  
Old June 16th, 2004, 09:14 PM
Ron Rosenfeld
external usenet poster
 
Posts: n/a
Default Problem with a MIN function

On Wed, 16 Jun 2004 12:28:32 +0100, "Andy B"
wrote:

Thanks Ron. A normal MIN function must ignore blanks, but my formula must
count them as zeroes.


Yes, your formula converts the Blanks to zeroes.


--ron
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.