Sum Count Ifs

Status
Not open for further replies.

Wildcats23

New Member
Joined
Dec 6, 2018
Messages
10
Hello,

How do you write a macro that has an entire range of D3:AD29 equal to the following formula =sum(countifs(range,criteria,range2,criteria2),countifs(range,criteria,range2,criteria2))?? THANK YOU!!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
enter formula to every cell D3:AD3


then run code from module

Code:
Sub copydown()
LastRow = Cells(Cells.Rows.Count, "A").End(xlUp).Row
    Range("D3:AD29").FillDown
End Sub

Hello,

How do you write a macro that has an entire range of D3:AD29 equal to the following formula =sum(countifs(range,criteria,range2,criteria2),countifs(range,criteria,range2,criteria2))?? THANK YOU!!!
 
Last edited:
Upvote 0
take out the last row... not needed.

Code:
Sub copydown()


    Range("D3:AD29").FillDown
End Sub
 
Upvote 0
Thank you for your reply, I should have been more specific. Each cell has a different criteria...before I send you running, Let me clarify. each cell in using the column header and current row it is in. As an example here is what the formula looks like =sum(countifs(fixed,Column header "d2",fixed,row reference "a3"),Countifs(fixed, column header "d2", fixed, row reference "a3"). How do I write a macro so It is running in the background and only shows the cell values in the cell when I click a cell in the D3:D29 range?
 
Upvote 0
Question begun again here.

In future, please do not post the same question multiple times. Questions of a duplicate nature will be locked or deleted, per #12 of the Forum Rules and points 6 & 7 of the Forum Use Guidelines.

Any bumps, clarifications, or follow-ups should be posted to the linked thread.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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