# Formula Question (Sum values if date is Tuesday)

#### VBA_Newbie

##### Active Member
Hi all,

I have a list with dates and baseball game attendance for those dates. I'm trying to write a formula to sum the attendance of all games played on a Tuesday (for example). The dates are in column B and the attendance is in column C.

Many thanks!

### Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

#### DominicB

##### Well-known Member
Good afternoon VBA_Newbie

Try this formula :

=SUM(IF((TEXT(\$B\$1:\$B\$50,"dddd")="Tuesday"),\$D\$1:\$D\$50,0))

The example goes down to row 50 - adjust to suit. This is an array formula so use Ctrl + Shift + Enter to commit.

HTH

DominicB

Thanks Dominic!

Replies
4
Views
400
Replies
13
Views
195
Replies
1
Views
367
Replies
0
Views
236
Replies
1
Views
118

1,171,060
Messages
5,873,543
Members
432,982
Latest member
meepio

### 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.

### Which adblocker are you using?

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

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