OFFSET Drag down not working as intended

Atlantir

New Member
Joined
Mar 1, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi! So I'm trying to make an excel for a shift schedule and currently i have a problem with the offset formula, the formula itself works fine but I don't know how to make it work when draging down, here is the formula:
=OFFSET(march!$B$1,16,0,1,1)-OFFSET(march!$B$1,15,0,1,1)
I want the offset to get values from different sheet where the workers can manually insert hours and how they were working so it need to go down by 3 with each cell for an example

Jacob Remote
Start 9
End 17
Michael Office
Start 10
End 16

So i need the offset to go with each cell down by 3 i tried using ROW()-3 but it is not working as i wanted to. I know that i didn't explained it well but i hope you will know what I mean if not i will try to post images from the sheet because i have it on my laptop from work.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Not sure to get your use case, but maybe this can help?
Book1
BCDEFGHIJK
1
2JacobRemoteJacob179
3Start9Michael1610
4End17Jordan128
5MichaelOffice
6Start10
7End16
8JordanCustomer
9Start8
10End12
11
Sheet1
Cell Formulas
RangeFormula
H2:H4H2=OFFSET($C$2,3*COUNTA($G$2:G2)-1,1)
I2:I4I2=OFFSET($C$2,3*(COUNTA($G$2:G2)-1)+1,1)
 
Upvote 0
Hi! So now I can post screens how does it all look and also I made small changes so I think it will be easier to make formulas here. First of all I want to make the excel count how many SL anyone had, if excel will find that in cell X is a sick leave then it will add 8 hours to a total of sick leaves, if they were working, it will add how many hours they were working, if it will find that they were on holidays it will add 8 hours to total of holidays. Also I found an issue where I type marchA2-marchA1 in a cell to count Adrian hours and it works fine then I do the same for Jakub (A4-A3) and after doing that and selecting them to drag it down the rest of the cells is looking something like:
A2-A1
A3-A2
A4-A3
So instead of jumping down by 2 it just moves only by one. will OFFSET function work there?


That's how the work schedule sheet looks like
1709551508759.png

And that's how the hours sheet looks like
1709552167912.png
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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