Formula Help....

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi guys.

Here is an extract of a spreadsheet (Sheet 2) that I'm using that lists all payments made by project. I have grouped all payments for 1 project on this example for illustrative purposes, but in reality they are contained separately in a 10,000 lined spreadsheet.
Excel Workbook
ABCDE
1Reference NumberProject NamePO NumberInvoice Date/Claim DateInvoice Amount
2JA05Sustainable Living07/02/2006 15,650.65
3JA05Sustainable Living25/10/2006 18,444.51
4JA05Sustainable Living11/12/2007 52,739.65
5JA05Sustainable Living15/03/2007 34,877.56
6JA05Sustainable Living10/07/2007 33,916.12
7JA05Sustainable Living14/04/2008 33,267.77
8JA05Sustainable Living15/05/2008 16,775.53
9JA05Sustainable Living04/08/2008 3,565.77
Sheet1
Excel 2003

I have a master spreadsheet in Sheet 1, Ref Number in column A of this spreadsheet, I just need a look up formula that will look up to the reference number in (Sheet 2 column A) and then just return the date of the last payment made (from column D). In the example, above the date returned would be 4/8/2008. Can anyone help?

PLEASE NOTE THE EXTRACT ABOVE SHOWS SHEET 1 - IN REALITY THIS INFORMATION IS CONTAINED IN SHEET 2 - APOLOGIES FOR THE CONFUSION

Cheers

Mark
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hello,

Try this in Master Sheet.

=MAX(IF(Sheet2!$A$2:$A$1000=$A2,Sheet2!$D$2:$D$1000))

Confirmed with Control+Shift+Enter, not just enter

Where $A2 is your Ref Number.

Also Pivot Table is more faster than formula. Try the excel help & Google.
 
Upvote 0
Excel Workbook
BCDEFGH
1Project NamePO NumberInvoice Date/Claim DateInvoice AmountCriteriaJA05
2Sustainable Living02/07/06 15,650.6508/04/08
3Sustainable Living10/25/06 18,444.51
4Sustainable Living12/11/07 52,739.65
5Sustainable Living03/15/07 34,877.56
6Sustainable Living07/10/07 33,916.12
7Sustainable Living04/14/08 33,267.77
8Sustainable Living05/15/08 16,775.53
9Sustainable Living08/04/08 3,565.77
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,718
Members
452,939
Latest member
WCrawford

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