Reverse lookup skipping blanks

armchairandy

Board Regular
Joined
Mar 27, 2012
Messages
53
I have two rows of data

the top row is either a number or a blank
The next row is a date, when the number was entered

This is carried out by the 1st date being the project start & then all the other dates +7 days.
I have some vba that takes the date that the update is carried out on (always a Friday) and looks up the row of dates and pastes the update value against the date

5BlankBlankBlank8BlankBlankBlank10
07/09/1814/09/1821/09/1828/09/1805/10/1812/10/1819/10/1826/10/1802/11/18

<tbody>
</tbody>


I have a table on another sheet which lists the last 3 dates that data was entered - bear in mind that the periods between each date is a week, but the entry period will not be exactly 4 weeks apart

The table should look like
07/09/1805/10/1802/11/18
5810

<tbody>
</tbody>

The 02/11/18 is easy as I can do a lookup based on when the last report was done (most current ie the report date)

what I then need is to be able to look from the number 10 leftwards & return the date & number of the previous update (ie 05/10/18 & 8), then the previous update (07/09/18 & 5)

Until now I have been trying to use the last date -28 & lookup the value based on the date, but this does not work when the update periods change.

The form is for multiple users, multiple projects, multiple update dates and needs to be automated so that mistakes/deliberate misinformation can be avoided.

The numbers can be negative as well as positive

Any help appreciated

Andrew
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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