H-Lookup and Dates

JRegal

New Member
Joined
Sep 11, 2014
Messages
5
Any help is appreciated!

I am using the following H-Lookup Formula to search for values that match with a certain date in sheet1 and move it to sheet2. Where I then shift it either left or right by C2 = one of the following #'s (-3,-2,-1,0,1,2,3,4) depending on the day I want my value to show up on.

=HLOOKUP(D4-$C$2,Sheet1!$D$5:$M$6,2,0)

My current set up looks like this:

Dates: l 9/19/14 l 9/20/14 l 9/21/14 l 9/22/14
Values: HK299

The issue I run into is when I change the days (C2) say to a plus 1 it shifts my value "HK299" from Friday (9/19/14) to Saturday (9/20/14) but I would like it to skip over Saturday and Sunday and shift under Monday (9/22/14). Also would like it skip over holidays i assign.

Any help or suggestions is appreciated.

Thanks,
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi, try:

=HLOOKUP(WORKDAY(D4,$C$2,holiday),Sheet1!$D$5:$M$6,2,0)

Substitute "holiday" for a range of cells that contain the holiday dates you want to exclude.
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,993
Members
448,539
Latest member
alex78

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