Forum Discussion
Excel formula help
- Feb 06, 2018
Hi Steven
If I am understanding you right, try this formula:
=SUMIF(A2:A5,"MTD",B2:B5)
Change A to your desired column where the MTD text is located.
Change B to where the $ column is located.
Basically, this formula will do what you have asked.
I have also attached a sample file to demo the above for you to see it in action.
Let us know how you go?
Cheers
Damien
Hi Steven
If I am understanding you right, try this formula:
=SUMIF(A2:A5,"MTD",B2:B5)
Change A to your desired column where the MTD text is located.
Change B to where the $ column is located.
Basically, this formula will do what you have asked.
I have also attached a sample file to demo the above for you to see it in action.
Let us know how you go?
Cheers
Damien
I am trying to do the same thing across a workbook for each month of the year. My formula is =SUMIF('M-4:SU-4'!C15,"CIP",'M-4:SU-4'!F15)
Each row is for an employee (15 is just one) M=Monday and SU=Sunday. CIP is job description (Construction in Progress), Column "F" is total hours for that day.
I am trying to pull the total hours of CIP for each week for each employee and when I put the above formula in I get a #Value! error. I double checked all cells for errors and everything looks fine. I don't know what I am missing. Thank you. Tammy
- H S DesaiMar 06, 2018Copper Contributor
Maybe because you dont have the range of cells to add?
- H S DesaiMar 06, 2018Copper Contributor
I am not sure why you cant get it?
Is this what you are trying to do?
SUMIF(C5:C9,"CIP",D5:D9)
- Tammy DugganMar 07, 2018Copper Contributor
it is basically what I am trying to do. I have uploaded the workbook. I need to figure out how to get the total CIP per employee per week.
- Tammy DugganMar 07, 2018Copper Contributor
I'll upload the workbook :)
- Damien_RosarioMar 06, 2018Silver ContributorHi Tammy
Could I suggest that you make a new post on this so we can look at it?
If possible, could you also upload a sample of the file for review?
Cheers
Damien- Tammy DugganMar 07, 2018Copper Contributor
Should I still make a new post? I uploaded my workbook.
- Damien_RosarioMar 07, 2018Silver Contributor
Hi Tammy
I've amended your worksheet with a formula that will do the trick.
Essentially the formula is just adding each worksheet and totals the value in your summary sheet (it's a simple formula given you only have 7 worksheets to calculate).
=SUMIF('M-4'!C3, "CIP", 'M-4'!F3)+SUMIF('T-4'!C3, "CIP", 'T-4'!F3)+SUMIF('W-4'!C3, "CIP", 'W-4'!F3)+SUMIF('TH-4'!C3, "CIP", 'TH-4'!F3)+SUMIF('F-4'!C3, "CIP", 'F-4'!F3)+SUMIF('S-4'!C3, "CIP", 'S-4'!F3)+SUMIF('SU-4'!C3, "CIP", 'SU-4'!F3)
Let us know how you go?
Cheers
Damien