Formula ?

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,125
Office Version
  1. 365
Platform
  1. Windows
i use this formula below

=SUM(C62:CV62)-(CX62)

It checks hour totals from where it starts. This formula is always under the name Check Hours and ends above that word Before Overall Totals=. What I am trying to do is every time I shift the 2 columns to go to the next which will be CW & CX . I have to change CV62 to CX62. Is there a way it can do that in a formula to change CV to the column before the work Overall Totals= at all times?

Excel 2016 (Windows) 32 bit
[Table="width:, class:head"][tr=bgcolor:#888888][th] [/th][th]
CU
[/th][th]
CV
[/th][th]
CW
[/th][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
60
[/td][td]
0.0
[/td][td]
0.0
[/td][td][/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
61
[/td][td]
0.0
[/td][td]
0.0
[/td][td][/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
62
[/td][td]
0.0
[/td][td]
0.0
[/td][td=bgcolor:#D9D9D9]
Overall Totals =
[/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
63
[/td][td][/td][td][/td][td]Check Hours[/td][/tr]
[tr=bgcolor:#FFFFFF][td=bgcolor:#888888]
64
[/td][td][/td][td][/td][td] Formula goes here [/td][/tr]
[/table]
[Table="width:, class:grid"][tr][td]Sheet: Min[/td][/tr][/table]
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try this:

=SUM(INDIRECT("C62:"&ADDRESS(62;COLUMN()-1)))-(CX62)
 
Last edited by a moderator:
Upvote 0
That's weird, it works over here. Can you share your file? (delete everything confidential first)
 
Upvote 0
Perhaps it's the comma / semi-colon "local formula" issue

try

=SUM(INDIRECT("C62:"&ADDRESS(62​,COLUMN()-1)))-(CX62)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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