Need next number

N

Nadine

I have the following information
Col A ColB ColC ColD Col E (where the formula needs to go
but showing what the result should be)
CA1234 75016 AA 1 5
CA1234 75016 AA 1 5
CA1234 75016 AA 1 5
CA1234 75016 AA 2 5
CA5678 75321 BB 4 4
CA5678 75321 BB 3 4
CA1234 75016 AA 5 5
CA5678 75321 CD 1 4
CA5678 75321 CD 4 4
CA5678 75321 BB 1 4
Col E should find the largest number in Col D that belongs to the
combination in the first 3 columns.
Any ideas on the formula to go in each line in col E?
Thank you.
 
M

Max

As responded to your multi-post in .worksheet.functions ...

Array-enter* into E1, copy down:
=MAX(IF((A$1:A$10=A1)*(B$1:B$10=B1)*(C$1:C$10=C1),D$1:D$10))
*press CTRL+SHIFT+ENTER to confirm the formula
 
S

steve

Try in E1
=SUMPRODUCT(MAX((A1:A10=A1)*(B1:B10=B1)*(C1:C10=C1)*(D1:D10)))
and copy down
But you have to make sure column D are numbers and not text stored as
numbers.

Regards
Steve
 
N

ncj

Try in E1
=SUMPRODUCT(MAX((A1:A10=A1)*(B1:B10=B1)*(C1:C10=C1)*(D1:D10)))
and copy down
But you have to make sure column D are numbers and not text stored as
numbers.

Regards

Dear All,

In Steve's formula we need to freez the range - as
Try in E1
=SUMPRODUCT(MAX(($A$1:$A$10=A1)*($B$1:$B$10=B1)*($C$1:$C$10=C1)*($D
$1:$D$10)))
and copy down
But you have to make sure column D are numbers and not text stored as
numbers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Find next number 2
IF formulas 5
move blank data 10
incremental counting based on criteria 4
sumif 1
Auto Fill a column 3
Select data from list without duplicates on a certain criteria 8
If and AND? 1

Top