Latest entry based on cell

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I am looking for a slight change (I think) to the following formula

=IFERROR(LOOKUP(9.99999999999999E+307,1/(D12:D46<>""),D12:D46),"")

This looks up the latest/last entry in the range D12:D46

I am looking for a similar formula to look up the latest/last entry based on a cell data


ie

C10 has the cell data, so I need the formula to match the latest/last entry within D12:D46 if A12:A46 is matched with C10

Many thanks for any help
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try:

=IFERROR(LOOKUP(9.99999999999999E+307,1/((D12:D46<>"")*(A12:A46=C10)),D12:D46),"")
 
Upvote 0
Hi Eric W,

That's great, thanks

Could there be another match included in the formula with column H the target range and cell reference =G10

Thanks again
 
Upvote 0
Try:

=IFERROR(LOOKUP(9.99999999999999E+307,1/((D12:D46<>"")*(A12:A46=C10)*(H12:H46=G10)),D12:D46),"")
 
Upvote 0

Forum statistics

Threads
1,215,235
Messages
6,123,789
Members
449,126
Latest member
Greeshma Ravi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top