How to get total in day of week pattern

sarfarazbutt

Board Regular
Joined
Jun 10, 2009
Messages
55
I need help in below sheet, need to calculate Day of week pattern for example if this sheet A8 and H8 are Saturday and value of A9 and H9 is 10+10 so the answer in K9 will be 20. Anybody have idea plz


 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">K9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,7,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">L9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,1,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">M9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,2,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">N9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,3,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">O9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,4,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">P9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,5,$A9:$J9</font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">Q9</th><td style="text-align:left">=SUMIF(<font color="Blue">$A8:$J8,6,$A9:$J9</font>)</td></tr></tbody></table></td></tr></table><br />
 
Last edited:
Upvote 0
Thanks for your idead but its not work in this sheet . This need to be fill in every cell of the sheet, and cannot copy paste fix formula i.e 1st Jan 2011 is Saturday but 1st Feb will not Saturday, need kind of if or lookup condition to solve the issue in whole sheet.
 
Upvote 0
You are welcome.

One other idea is instead of having the weekday number in A8:J8, you can have the weekday as text. This text would be the same as found in K7:Q7. Then you could use K7:Q7 as a reference in both the COUNIF and SUMIF formulas.
Excel Workbook
ABCDEFGHIJKLMNOPQ
71-Jan-112-Jan-113-Jan-114-Jan-115-Jan-116-Jan-117-Jan-118-Jan-119-Jan-1110-Jan-11SatSunMonTueWedThuFri
8SatSunMonTueWedThuFriSatSunMon2221111
91020101010101010101020302010101010
Sheet
 
Upvote 0
Upvote 0
Your formulas in AI100:AO100 are based on the numbered day of week in row 4.

Do your numbered days of the week in C4:AG4 match with the days of the week in C99:AG99 ?
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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