Sumif function not filling properly.

DanPerry

New Member
Joined
Oct 16, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi,
Quite new to excel.
=SUMIF($D:$D,"A335",$O:$O)
I have this sumif formula for summing up data from one of our centres.
When i try to use the fill handle for the other centres it just copies the A335 as well.
Is there anyone that knows what i'm missing?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the Board!

I am not sure what the issue is. When you copy/drag/fill a formula, it will only adjust the range references in your formula. It doesn't update/change any hard-coded values like "A335".
If you used a cell reference instead of hard-coding "A335", it would adjust the cell reference.

What cell are you putting this formula in?
What range are you filling?
What should the new values be for the centres?
"A336", "A337", etc. or "B335", "C335", etc.?
 
Upvote 0
Welcome to the Board!

I am not sure what the issue is. When you copy/drag/fill a formula, it will only adjust the range references in your formula. It doesn't update/change any hard-coded values like "A335".
If you used a cell reference instead of hard-coding "A335", it would adjust the cell reference.

What cell are you putting this formula in?
What range are you filling?
What should the new values be for the centres?
"A336", "A337", etc. or "B335", "C335", etc.?
Sadly the centres aren't ordered properly because someone a while ago did something. But that could be the issue i guess because the one after is A716, A224, A313. I just didn't want to do it manually as there's a lot
 
Upvote 0
There are a few options. I think you many be able to use Pivot Tables or Power Query.

Or another way would be to get a list of all the different options. If you do not already have that, this can be done easily by copying the column of Work Centres and using the "Remove Duplicates" options to get a single listing for each Work Centre.
Then, use a cell reference in your formula.

For example, if you have the list of Work Centres in the range Y2:Y100, then in Z2 you can enter this formula:
Excel Formula:
=SUMIF($D:$D,Y2,$O:$O)
and copy down to cell Y100.
 
Upvote 0
There are a few options. I think you many be able to use Pivot Tables or Power Query.

Or another way would be to get a list of all the different options. If you do not already have that, this can be done easily by copying the column of Work Centres and using the "Remove Duplicates" options to get a single listing for each Work Centre.
Then, use a cell reference in your formula.

For example, if you have the list of Work Centres in the range Y2:Y100, then in Z2 you can enter this formula:
Excel Formula:
=SUMIF($D:$D,Y2,$O:$O)
and copy down to cell Y100.
Ran into another issue sorry.
So basically. The sheet shows all the centres ordered parts and if there still on the way or not by the end of the week. So I can't single out a centre because theres e.g. 24 lines for one centre because theres 24 different parts ordered.
This is the most I think I can show. Not sure how much of this spreadsheet I can share that's all.
Thank you again
 

Attachments

  • 1729097744706.png
    1729097744706.png
    71.8 KB · Views: 13
Upvote 0
I am afraid that does not show enough information to make any sort of determination (I do not see any date or amount fields).

If the data is sensitive, just make up some "dummy data" that is structured the same way, and show us your expected results based on your dummy data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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