Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John Galt
 
Posts: n/a
Default Finding Value Conditional

I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

A B C D E F G
ROW Year Date Note Odometer Miles Next Due Cost
1 2002 08/05/02 Oil Change 3,033 3,033
8,033 31.95
2 2002 10/04/02 Oil Change 8,028 4,995
13,028 31.95
3 2002 12/27/02 Oil Change 14,395 6,367
19,395 -
4 2003 04/02/03 Oil Change 20,691 6,296
28,191 68.26
5 2003 08/07/03 Oil Change 28,684 7,993
36,184 68.26
6 2003 12/13/03 Oil Change(DIY) 35,813 7,129
43,313 30.00
7 2004 10/14/04 Oil Change(DIY) Mobil 1 5 qts Valvoline
1.5 qts 43,697 7,884 50,197 30.00
8 2005 03/20/05 Oil Change(DIY) Mobil 1 6.5 qts
50,885 7,188 58,135 30.00
9 2005 05/26/05 Oil Change(Midas) Mobil 1 6.5 qts
56,687 5,802 63,937 52.99
10 2009 12/31/09 (56,687) 7,250





ROW Oil Change Other Maint
20 2002 Total Maintenance 63.90 -
63.90
21 2003 Total Maintenance ** Formula ** 166.52
44.64 211.16
22 2004 Total Maintenance 30.00 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"


  #2   Report Post  
John Galt
 
Posts: n/a
Default

Sorry about the formatting mess in the original msg.
I have attached an HTML Doc. to look at an example of the sheet


"John Galt" wrote in message
...
I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

A B C D E F G
ROW Year Date Note Odometer Miles Next Due Cost
1 2002 08/05/02 Oil Change 3,033 3,033
8,033 31.95
2 2002 10/04/02 Oil Change 8,028 4,995
13,028 31.95
3 2002 12/27/02 Oil Change 14,395 6,367
19,395 -
4 2003 04/02/03 Oil Change 20,691 6,296
28,191 68.26
5 2003 08/07/03 Oil Change 28,684 7,993
36,184 68.26
6 2003 12/13/03 Oil Change(DIY) 35,813 7,129
43,313 30.00
7 2004 10/14/04 Oil Change(DIY) Mobil 1 5 qts Valvoline
1.5 qts 43,697 7,884 50,197 30.00
8 2005 03/20/05 Oil Change(DIY) Mobil 1 6.5 qts
50,885 7,188 58,135 30.00
9 2005 05/26/05 Oil Change(Midas) Mobil 1 6.5 qts
56,687 5,802 63,937 52.99
10 2009 12/31/09 (56,687) 7,250





ROW Oil Change Other Maint
20 2002 Total Maintenance 63.90 -
63.90
21 2003 Total Maintenance ** Formula ** 166.52
44.64 211.16
22 2004 Total Maintenance 30.00 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"






  #3   Report Post  
Bob Umlas
 
Posts: n/a
Default

crl/shift/enter:
=MAX(IF(A1:A10=A21,D1:D10))


"John Galt" wrote in message
...
I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

A B C D E F G
ROW Year Date Note Odometer Miles Next Due Cost
1 2002 08/05/02 Oil Change 3,033 3,033
8,033 31.95
2 2002 10/04/02 Oil Change 8,028 4,995
13,028 31.95
3 2002 12/27/02 Oil Change 14,395 6,367
19,395 -
4 2003 04/02/03 Oil Change 20,691 6,296
28,191 68.26
5 2003 08/07/03 Oil Change 28,684 7,993
36,184 68.26
6 2003 12/13/03 Oil Change(DIY) 35,813

7,129
43,313 30.00
7 2004 10/14/04 Oil Change(DIY) Mobil 1 5 qts Valvoline
1.5 qts 43,697 7,884 50,197 30.00
8 2005 03/20/05 Oil Change(DIY) Mobil 1 6.5 qts
50,885 7,188 58,135 30.00
9 2005 05/26/05 Oil Change(Midas) Mobil 1 6.5 qts
56,687 5,802 63,937 52.99
10 2009 12/31/09 (56,687) 7,250





ROW Oil Change Other Maint
20 2002 Total Maintenance 63.90 -
63.90
21 2003 Total Maintenance ** Formula ** 166.52
44.64 211.16
22 2004 Total Maintenance 30.00 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"




  #4   Report Post  
John Galt
 
Posts: n/a
Default

Well that didn't work
Let's try an attachment of a sample XLS.


"John Galt" wrote in message
...
Sorry about the formatting mess in the original msg.
I have attached an HTML Doc. to look at an example of the sheet


"John Galt" wrote in message
...
I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

A B C D E F G
ROW Year Date Note Odometer Miles Next Due Cost
1 2002 08/05/02 Oil Change 3,033 3,033
8,033 31.95
2 2002 10/04/02 Oil Change 8,028 4,995
13,028 31.95
3 2002 12/27/02 Oil Change 14,395 6,367
19,395 -
4 2003 04/02/03 Oil Change 20,691 6,296
28,191 68.26
5 2003 08/07/03 Oil Change 28,684 7,993
36,184 68.26
6 2003 12/13/03 Oil Change(DIY) 35,813
7,129
43,313 30.00
7 2004 10/14/04 Oil Change(DIY) Mobil 1 5 qts Valvoline
1.5 qts 43,697 7,884 50,197 30.00
8 2005 03/20/05 Oil Change(DIY) Mobil 1 6.5 qts
50,885 7,188 58,135 30.00
9 2005 05/26/05 Oil Change(Midas) Mobil 1 6.5 qts
56,687 5,802 63,937 52.99
10 2009 12/31/09 (56,687) 7,250





ROW Oil Change Other Maint
20 2002 Total Maintenance 63.90 -
63.90
21 2003 Total Maintenance ** Formula ** 166.52
44.64 211.16
22 2004 Total Maintenance 30.00 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"









  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 26 May 2005 18:53:47 GMT, "John Galt"
wrote:

I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

0 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"



=MAX((B3:B11=C16)*E3:E11)

entered with <ctrl<shift<enter (array formula)

or:

=INDEX($E$3:$E$11,MATCH(C16,$B$3:$B$11))

You may need to adjust the references to match your Year and Odometer ranges.




--ron


  #6   Report Post  
John Galt
 
Posts: n/a
Default

Thanks.
The 2nd formula worked out better for me.
I made the necessary adjustments and voila!
I appreciate your help!

JG

"Ron Rosenfeld" wrote in message
...
On Thu, 26 May 2005 18:53:47 GMT, "John Galt"

wrote:

I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

0 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"



=MAX((B3:B11=C16)*E3:E11)

entered with <ctrl<shift<enter (array formula)

or:

=INDEX($E$3:$E$11,MATCH(C16,$B$3:$B$11))

You may need to adjust the references to match your Year and Odometer
ranges.




--ron



  #7   Report Post  
John Galt
 
Posts: n/a
Default

Thanks to you too!
I love multiple choices.
I appreciate you taking the time to help.

JG

"Bob Umlas" wrote in message
...
crl/shift/enter:
=MAX(IF(A1:A10=A21,D1:D10))


"John Galt" wrote in message
...
I am trying to find the largest value in column D for the year(Column A).

I want to build a formula in D21 that looks at the year in A21 and the
finds the highest value in column D1:D9 for that Year

2003 would = 35,813.

Any help would be appreciated.
Thanks

A B C D E F G
ROW Year Date Note Odometer Miles Next Due Cost
1 2002 08/05/02 Oil Change 3,033 3,033
8,033 31.95
2 2002 10/04/02 Oil Change 8,028 4,995
13,028 31.95
3 2002 12/27/02 Oil Change 14,395 6,367
19,395 -
4 2003 04/02/03 Oil Change 20,691 6,296
28,191 68.26
5 2003 08/07/03 Oil Change 28,684 7,993
36,184 68.26
6 2003 12/13/03 Oil Change(DIY) 35,813

7,129
43,313 30.00
7 2004 10/14/04 Oil Change(DIY) Mobil 1 5 qts
Valvoline
1.5 qts 43,697 7,884 50,197 30.00
8 2005 03/20/05 Oil Change(DIY) Mobil 1 6.5 qts
50,885 7,188 58,135 30.00
9 2005 05/26/05 Oil Change(Midas) Mobil 1 6.5 qts
56,687 5,802 63,937 52.99
10 2009 12/31/09 (56,687) 7,250





ROW Oil Change Other Maint
20 2002 Total Maintenance 63.90 -
63.90
21 2003 Total Maintenance ** Formula ** 166.52
44.64 211.16
22 2004 Total Maintenance 30.00 591.46
621.46
23 2005 Total Maintenance 82.99 145.14
228.13


John Galt
"Who is John Galt?"






  #8   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Thu, 26 May 2005 21:07:32 GMT, "John Galt"
wrote:

Thanks.
The 2nd formula worked out better for me.
I made the necessary adjustments and voila!
I appreciate your help!


Glad to help.

Be sure your years are sorted in ascending order or the MATCH function may not
find the correct one. Also, any YEAR higher than the highest one in the table
will return the last value.

Thanks for the feedback.
--ron
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
Conditional Formatting Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
How do i create a conditional sum? tmiller708 Excel Worksheet Functions 2 May 5th 05 01:58 AM
conditional formatting conflict? Abi Excel Worksheet Functions 2 January 11th 05 03:41 PM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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