ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   highest number if criteria (https://www.excelbanter.com/excel-discussion-misc-queries/142857-highest-number-if-criteria.html)

instereo911 via OfficeKB.com

highest number if criteria
 
Good evening,

I have a problem and I thought DMAX would do it, but I don't think it will..
My worksheet has over 60,000 entries. Each entry is assigned a Unit Number
and it tells you how many days old that entry is. My goal is to have a
formula that says the following "Go and find "RF", once you find "RF", bring
back the oldest data (which would be 136) in a different cell"

A B C
1 Unit Number Entry Days Old
2 RF ABBBA 136
3 RF ABBCV 98
4 MH BBCFD 97
5 SP BBNBN 97
6 RF EERER 85
7 MH EDSDS 85



Make sense? Thanks again

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200705/1


Gary''s Student

highest number if criteria
 
A tiny trick:

First sort your data by column C descending

This will put all the oldest stuff first

then:

=VLOOKUP("RF",A2:C7,3,0) will return the entry for the first "RF" found, but
now the first one will also be the oldest one!!

--
Gary''s Student - gsnu200721


"instereo911 via OfficeKB.com" wrote:

Good evening,

I have a problem and I thought DMAX would do it, but I don't think it will..
My worksheet has over 60,000 entries. Each entry is assigned a Unit Number
and it tells you how many days old that entry is. My goal is to have a
formula that says the following "Go and find "RF", once you find "RF", bring
back the oldest data (which would be 136) in a different cell"

A B C
1 Unit Number Entry Days Old
2 RF ABBBA 136
3 RF ABBCV 98
4 MH BBCFD 97
5 SP BBNBN 97
6 RF EERER 85
7 MH EDSDS 85



Make sense? Thanks again

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200705/1



Elkar

highest number if criteria
 
See if this array formula works:

=MAX(IF(A1:A60000="RF",C1:C60000,""))

Note: Array formulas must be entered with CTRL-SHIFT-ENTER instead of just
Enter. If done properly, it should be enclosed in { }.

HTH,
Elkar


"instereo911 via OfficeKB.com" wrote:

Good evening,

I have a problem and I thought DMAX would do it, but I don't think it will..
My worksheet has over 60,000 entries. Each entry is assigned a Unit Number
and it tells you how many days old that entry is. My goal is to have a
formula that says the following "Go and find "RF", once you find "RF", bring
back the oldest data (which would be 136) in a different cell"

A B C
1 Unit Number Entry Days Old
2 RF ABBBA 136
3 RF ABBCV 98
4 MH BBCFD 97
5 SP BBNBN 97
6 RF EERER 85
7 MH EDSDS 85



Make sense? Thanks again

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200705/1



instereo911 via OfficeKB.com

highest number if criteria
 
Oh. I will have to try this out. It makes perfect sense.

Thanks you tons

Gary''s Student wrote:
A tiny trick:

First sort your data by column C descending

This will put all the oldest stuff first

then:

=VLOOKUP("RF",A2:C7,3,0) will return the entry for the first "RF" found, but
now the first one will also be the oldest one!!

Good evening,

[quoted text clipped - 14 lines]

Make sense? Thanks again


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200705/1



All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com