Summing a total from a criteria (string)

GarysBeau

New Member
Joined
Jun 7, 2011
Messages
14
Hi new to this (so apologies if I do this the wrong way)

I had a look around the forum for similiar topics and whilst some were similiar didn't seem to answer my query.

Anyway my query is:

I have lots of data in the form of spreadsheets with lots of tabs to sum but I cant add columns, reformat or change this initial data. However I am applying a cover sheet with the forumals to work out the totals based on this format. Basically the format is like this:

_____A______B______C_____D_____
1_ "Sat 1"___10______5_____5_____
2_"Sun 2"____5______4_____1______
3_"Mon 3"____2______2_____1______
4_"Tue 4"____7______3_____3____
5_"Wed 5"____1______2_____9___
6_"Thur 6"___8_______7_____11___
7_"Fri 7"_____1_______1_____1____
8_"Sat 8"____3_______3_____3____

I want to sum all the days which have saturdays (in fact each day of the week as a separate total), based on a range of data. So I ultimately get the result for Sat as: 29 (10+5+5+3+3+3).

i've tried everything from SUMIF, IF with Left functions) etc but having no joy, so any help really appreciated.

Hope this makes sense.

Regards
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi new to this (so apologies if I do this the wrong way)

I had a look around the forum for similiar topics and whilst some were similiar didn't seem to answer my query.

Anyway my query is:

I have lots of data in the form of spreadsheets with lots of tabs to sum but I cant add columns, reformat or change this initial data. However I am applying a cover sheet with the forumals to work out the totals based on this format. Basically the format is like this:

_____A______B______C_____D_____
1_ "Sat 1"___10______5_____5_____
2_"Sun 2"____5______4_____1______
3_"Mon 3"____2______2_____1______
4_"Tue 4"____7______3_____3____
5_"Wed 5"____1______2_____9___
6_"Thur 6"___8_______7_____11___
7_"Fri 7"_____1_______1_____1____
8_"Sat 8"____3_______3_____3____

I want to sum all the days which have saturdays (in fact each day of the week as a separate total), based on a range of data. So I ultimately get the result for Sat as: 29 (10+5+5+3+3+3).

i've tried everything from SUMIF, IF with Left functions) etc but having no joy, so any help really appreciated.

Hope this makes sense.

Regards
Maybe this...

=SUMPRODUCT((LEFT(A1:A8,3)="Sat")*B1:D8)
 
Upvote 0
Ive look to use a couple of formula to find the day of the week then sumif the number of the day of week

Excel Workbook
HIJK
4DateDayAmountWeek Day Number
501/01/2011Saturday237
602/01/2011Sunday241
703/01/2011Monday252
804/01/2011Tuesday263
905/01/2011Wednesday274
1006/01/2011Thursday285
1107/01/2011Friday296
1208/01/2011Saturday307
1309/01/2011Sunday311
1410/01/2011Monday322
1511/01/2011Tuesday333
1612/01/2011Wednesday344
1713/01/2011Thursday355
1814/01/2011Friday366
1915/01/2011Saturday377
2016/01/2011Sunday381
2117/01/2011Monday392
2218/01/2011Tuesday403
2319/01/2011Wednesday414
2420/01/2011Thursday425
25
26Saturday90
27Sunday93
28Monday96
29Tuesday99
30Wednesday102
31Thursday105
32Friday65
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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