sumifs, $

Celica

New Member
Joined
Jul 6, 2016
Messages
9
Hi

I am having trouble with my sumifs in vba. It is returning error 1004. I think that it is due to one the word that it is referencing as it has the symbol $ after the word Overtime. I have tried the following:


1. putting in " - however that didn't work as it then reads the characters and not the value

2. putting in address instead value, there was change


Here is the code :
Code:
gc2 = Ns.Cells(3, ((t * 3) + t - 1)).Address
Ns.Cells(4 + g - 1, (t * 3 - (t - 1))).Formula = "=sumifs(" & S2s & vc1 & ":" & vc2 & "," & S2s & gc3 & ":" & gc4 & "," & S3s & gc2 & "," & S2s & Ac2 & ":" & Ac3 & "," & Ac1 & ")"

It is important to keep the word Overtime $ as that is the heading where I pull my data out from.

Any assistance would be appreciated.

Thanks
Celica
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Forum statistics

Threads
1,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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