Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Deb Pingel
 
Posts: n/a
Default Help with Formula, Should I be using Max?


I have a spreadsheet that looks like this.
Date tank tank
1 2

1/10/06 999 7500



This data is kept on a daily basis. I am trying to find a formula that
will return the latest date, but only if the tank value is at 999, as
in tank 1
I have tried =MAX(IF(tank1=999,A3:A47," ")) returns Max of A3:A47
only
and =IF(tank1=999,MAX(A4:A48)," ") returns Max of A only
both return only the latetest date. What am I missing?
Thanks in advance
Deb


--
Deb Pingel
------------------------------------------------------------------------
Deb Pingel's Profile: http://www.excelforum.com/member.php...o&userid=20119
View this thread: http://www.excelforum.com/showthread...hreadid=513028

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Help with Formula, Should I be using Max?

The first formula is an array formula, so you should commit it using
CTRL-SHIFT-ENTER rather than the normal ENTER. If you do this correctly
then Excel will wrap curly braces { } around the formula - you should
not type these yourself. I would also suggest replacing the " " with 0
in both formulae.

I presume tank1 is a named range - it should cover the same number of
cells that your date range covers.

Hope this helps.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Help with Formula, Should I be using Max?

=MAX(IF(Tank_Range=999,Date_Range))

entered with ctrl + shift & enter

--
Regards,

Peo Sjoblom

Northwest Excel Solutions

Portland, Oregon




"Deb Pingel" wrote
in message ...

I have a spreadsheet that looks like this.
Date tank tank
1 2

1/10/06 999 7500



This data is kept on a daily basis. I am trying to find a formula that
will return the latest date, but only if the tank value is at 999, as
in tank 1
I have tried =MAX(IF(tank1=999,A3:A47," ")) returns Max of A3:A47
only
and =IF(tank1=999,MAX(A4:A48)," ") returns Max of A only
both return only the latetest date. What am I missing?
Thanks in advance
Deb


--
Deb Pingel
------------------------------------------------------------------------
Deb Pingel's Profile:
http://www.excelforum.com/member.php...o&userid=20119
View this thread: http://www.excelforum.com/showthread...hreadid=513028


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Deb Pingel
 
Posts: n/a
Default Help with Formula, Should I be using Max?


Dear Pete,
Thanks for looking at this. When I use your formula, I get a date, but
it isn't the most recent date with a 999 value. I checked my named
range and made sure the date range matches. I also added the "0" as
suggested.
The date returned is showing a value of 0, while the next date is
showing a 999. At least a date was returned!
=MAX(IF(tank1=999,A4:A45,0)) My formula
Deb


--
Deb Pingel
------------------------------------------------------------------------
Deb Pingel's Profile: http://www.excelforum.com/member.php...o&userid=20119
View this thread: http://www.excelforum.com/showthread...hreadid=513028

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Deb Pingel
 
Posts: n/a
Default Help with Formula, Should I be using Max?


Hey Pete,
I messed with it a little more and checked my ranges again and now it
works.
It was adjusting down by one cell before, but my named range was off by
1 cell. Now it seems to be working.
Thanks so very much.
Deb:)


--
Deb Pingel
------------------------------------------------------------------------
Deb Pingel's Profile: http://www.excelforum.com/member.php...o&userid=20119
View this thread: http://www.excelforum.com/showthread...hreadid=513028



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Help with Formula, Should I be using Max?

Glad you got it working, thanks for feeding back.

Pete

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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
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 07:02 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"