Not sure if Vlookup is the right choice

KFrank

New Member
Joined
May 24, 2020
Messages
4
Office Version
  1. 2007
Platform
  1. Windows
Hi all,

I am a bit confused on this one.

I work shifts of 12.3 hours. I have a certain amount of hours to complete before I can go on holiday. I would like cell D2 to tell me on what day I finish my hours.

As you can see in cell C324, I have to work 2.7 hours and then my hours for the season will be finished.

I need the formula in D2 to say "Find the cell in column C that is less than 12.3 but more than zero (as the cells below C324 are blank) and display the information in the cell in column D next to that cell.

So D2 should display cell D324 or 06/06/2024.

Can anybody help?

EDIT:
My apologies, I have made an error in my calculations.

Cell D2 actually needs to show D325 as that is the first cell that has zero hours remaining and would be the day I have finished working. Cell D324 shows that I still have 2.7 hours to work the next day.
 

Attachments

  • Capture.JPG
    Capture.JPG
    111.1 KB · Views: 19
Last edited by a moderator:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hello KFrank,

An easy formula, in cell D2, to display the first blank cell is:-

="D"&COUNT(C8:C365)+1

It simply, puts in the letter D and then counts the number of Data in column C (from row 8 to 365) and adds one to it - the first empty cell.

Jamie
 
Upvote 0
Try this formula structure. Notice the ranges are offset by 1 row.

22 05 07.xlsm
CD
1
216/05/2022
3
4
5
6
7
888.81/05/2022
988.82/05/2022
1088.83/05/2022
1188.84/05/2022
1288.85/05/2022
1388.86/05/2022
1488.87/05/2022
1588.88/05/2022
1688.89/05/2022
1788.810/05/2022
1888.811/05/2022
1939.612/05/2022
2027.313/05/2022
211514/05/2022
222.715/05/2022
2316/05/2022
2417/05/2022
2518/05/2022
2619/05/2022
Date
Cell Formulas
RangeFormula
D2D2=LOOKUP(9^9,C8:C25,D9:D26)
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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