Sumif not working

syed_mushraf

Active Member
Joined
Oct 13, 2002
Messages
261
cell Sheet1!A1 to Sheet1!G1 is merged cell with heading "Week-1"
cell Sheet1!A2 to Sheet1!G2 have some data

Cell Sheet1!H1 to Sheet1!N1 is merged cell for heading "Week-2"
cell Sheet1!H2 to Sheet1!G2 have some data

----------------------------------------------------

I need a summary in the sheet!2 by using sumif function

Cell Sheet2!A1 is containing "Week-1"
in Shee2!A2 i need sum of Sheet1!A2:G2 using Sumif "Week-1"

Plz help how will be done
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Merged cells are hell to deal with. Is there any chance of you unmerging them? I ask before any solution is posted as it will make a difference of being easy or difficult, from now through the life of this spreadsheet.
 
Upvote 0
Good point, of course, but please help me out, why Sumif? You already have the heading in both sheets and they're not going anywhere.

Why not just a sum formula in Shet2 A1, like =SUM(Sheet1!A2:G2)
 
Upvote 0
Hi,

How about...?

=SUM(OFFSET(A1,MATCH(I3,A1:A8,0),0,1,7))
Book2
ABCDEFGHI
1Week-1
21234567
3Week-2Week-2
489101112131477
5Week-3
615161718192021
7Week-4
822232425262728
9
Sheet1
 
Upvote 0
Hi fairwinds,
thankx for response .
it is working fine but if there is another row exits for Dates between week and data then what would be the function. We want to skip date filed while summing up the data of next row.
 
Upvote 0
Do you mean like this?

=SUM(OFFSET(A1,MATCH(I6,A1:A12,0)+1,0,1,7))
Book2
ABCDEFGHI
1Week-1
2
31234567
4Week-2
5
6891011121314Week-2
7Week-377
8
915161718192021
10Week-4
11
1222232425262728
Sheet1
 
Upvote 0
I still recommend you structure your data differently, as opposed to using merged cells. They are the devil. ( ;) )
 
Upvote 0
firefytr said:
They are the devil. ( ;) )


I think it is a handy feature for making nice and appealing layouts. Making this is also an important and useful excel skill. As long as you know what you are doing, they don't mess up anything.

I would be more concerned about people using VBA code and advanced formulas given here, without actually understand what result they give and why.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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