date reference

Daniel Dridan

New Member
Joined
Oct 29, 2007
Messages
23
I have two columns of data. Column A has dates and column B has random data which relates to the date. How do I get a seperate cell to show the date value in column A for the last date where data has been entered into column B?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try

=MAX(NOT(ISBLANK(B:B))*(A:A))

Entered as an array formula (Control-shift-enter rather than enter)

It should look like this when you are done

{=MAX(NOT(ISBLANK(B:B))*(A:A))}

But dont enter the curly brackets yourself - excel puts them in for you
 
Upvote 0
If I understand your setup correctly, the last filled cell in Column A (your dates) is on the same row as the last filled cell in Column B, correct? If so, then your request simplifies to finding the contents of the last filled cell in Column A. Here is a formula (normally entered) to do that...

=LOOKUP(2,1/(A1:A65535<>""),A:A)

The A1:A65535 reference needs to be specified for XL2003 although if you can determine a maximum row number beyond which your data will never go, then change the 65535 to that row number (it will make the formula more efficient. If you are using XL2007 or later, then you can use this formula instead...

=LOOKUP(2,1/(A:A<>""),A:A)

but it would still be more efficient to establish a maximum row number and use the first formula instead.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,681
Members
452,937
Latest member
Bhg1984

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