Return Most current Date

Johnboy

Board Regular
Joined
Oct 25, 2004
Messages
144
Hi All,

Sheet 1 contains data for a one year
Column A = Date
Column B = Unique Customer ID
Column R = Transaction ID

On Sheet 2
Column A = Customer ID
Column B = I would like to have the most current date returned by Transaction ID (Sheet1 Column R) if equals QQA

Thanks in advance
Johnboy
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi All,

Sheet 1 contains data for a one year
Column A = Date
Column B = Unique Customer ID
Column R = Transaction ID

On Sheet 2
Column A = Customer ID
Column B = I would like to have the most current date returned by Transaction ID (Sheet1 Column R) if equals QQA

Thanks in advance
Johnboy

Looks like you want...

Sheet2, B2, control+shift+enter, not just enter:

=MAX(IF(Sheet1!$B$2:$B$100=A2,IF(Sheet1!$R$2:$R$100="QQA",Sheet1!$A$2:$A$100)))
 
Upvote 0
Ok ran into small problem, When inserting a row on Sheet1 changes range values on sheet2. Tried the following
{=MAX(INDIRECT(IF(Log!C7:C5000=A3,INDIRECT(IF(Log!R7:R5000="BPO",INDIRECT(Log!A7:A5000))))))}

With no luck, even played with different variations of INDIRECT.

Johnboy
 
Upvote 0
Ok ran into small problem, When inserting a row on Sheet1 changes range values on sheet2. Tried the following
{=MAX(INDIRECT(IF(Log!C7:C5000=A3,INDIRECT(IF(Log!R7:R5000="BPO",INDIRECT(Log!A7:A5000))))))}

With no luck, even played with different variations of INDIRECT.

Johnboy

If you want to lock references the formula must process, try...

=MAX(IF(INDIRECT("Log!C7:C5000")=A3,IF(INDIRECT("Log!R7:R5000")="BPO",INDIRECT("Log!A7:A5000"))))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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