Get Closest Times Above & Below Specified Time

matt121237

New Member
Joined
Jul 26, 2007
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Originally posted a few days ago but didn't get a solid answer figured out:
http://www.ozgrid.com/forum/showthread.php?t=73637&goto=newpost**

Link to the file in the thread above :
http://www.ozgrid.com/forum/attachment.php?attachmentid=23370&d=1185259536


I am trying to pull the closest times above and below and some other data from various worksheets.

I am having problems pulling the correct times and believe my error is in this part of the bigger formulas (

COLUMN(INDIRECT(portlookup&C5&"HEAD"))-COLUMN(C1),3)+1<=2
which breaks down to
COLUMN(INDIRECT(ABYJANHEAD))-COLUMN(C1),3)+1<=2

I don't think this is accurately telling my formula how to look at the table and pick the right time. I've tried different mod divisors and still can't get it to pull the right time. Any help would be appreciated. If you can help with the two time formulas I should be able to adapt the rest based on them.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
See my response in your original thread here...

Thanks again Dom, owe you AGAIN!! Anyone who is interested the above linked thread has many answers and suggestions to my problem. Thanks all...
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,044
Members
448,543
Latest member
MartinLarkin

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