Advanced Formula

Coded552

New Member
Joined
Mar 18, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
I have a time entry sheet with a formula that works but its not very elegant (ex2):
=IF(OR(F2="",G2<>""),IF(OR(F3="",G3<>""),IF(OR(F4="",G4<>""),IF(OR(F5="",G5<>""),IF(OR(F6="",G6<>""),IF(OR(F7="",G7<>""),NOW()-TODAY()+((8-H8)/24),F7+((8-H8)/24)),F6+((8-H8)/24)),F5+((8-H8)/24)),F4+((8-H8)/24)),F3+((8-H8)/24)),F2+((8-H8)/24))

The base of this formula is:
=B3+((8-D8)/24)

But B3 is not always the cell I want to reference. I want to reference the cell on the left where the cell to its right is empty. In (ex1) the cell I want to reference is the one with 9:00 AM (yes this is B3).
D8 will always be a static reference.
I have a formula that finds the cell I want:
=ADDRESS(ROW(B2)+COUNT(C2:C7),COLUMN(B2))

But if I combine the formulas:
=ADDRESS(ROW(B2)+COUNT(C2:C7),COLUMN(B2))+((8-D8)/24)

It comes up as an error. Im assuming that there is something simple that Im overlooking but I cant think of what it could be.
Any help would be well helpful.

Thanks
 

Attachments

  • ex1.png
    ex1.png
    5.2 KB · Views: 3
  • ex2.png
    ex2.png
    21.8 KB · Views: 4

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hey, you just need an INDIRECT function nested where you substituted in the B3 part.

=INDIRECT(ADDRESS(ROW(B2)+COUNT(C2:C7),COLUMN(B2)))+((8-D8)/24)
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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