LARGE IF Statement?

ScottyLawrenceCO

New Member
Joined
Mar 23, 2011
Messages
7
I have a CSV data base that has hundreds of entries of transactions.

Column A is a 6 digit customer ID number.
Column B is the date that the transaction happened.
Column C is the price of the transaction.

On a seperate sheet, I have a space to type in a 6 digit customer ID. If you type in that number, I need a formula that will find the date of the transaction that customer had. So if you type in customer 123456 into cell A1, B1 would say, "2/21/2011" if that was the last time that customer made a purchase. If you type in 654321, cell B1 would change to "1/15/2011" since that was the last time THAT customer made a purchase.

Essentially I need to find the HIGHEST date in Column B, but taking into account the unique IDs in column A. If a LARGEIF() statement existed I would think it would do the trick (find the largest number IF that number has the same customer ID).

Please help!
 
Last edited:

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Hi,

Welcome to the MrExcel,

Try this Array Formula, must hit Control+Shift+Enter, not just Enter.

=MAX(IF(Sheet1!A2:A1000=A1,Sheet1!B2:B1000))
 

ScottyLawrenceCO

New Member
Joined
Mar 23, 2011
Messages
7
Thanks for the welcome and the solution! I tried something similar but it wasn't working until i entered it as an array. I still don't really understand what that means, but it worked so we are in business.

Thanks!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,564
Messages
5,596,875
Members
414,106
Latest member
Tigretto

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
Top