Sum Product Formula Broke

SoldierWalb

New Member
Joined
Feb 11, 2022
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I was working on Summing the Qty of all the A orders under the SHP column. This formula was working fine last week and I have been working on some macros in the workbook and noticed that now the formula is no longer adding up the product for me anymore. So in the example below the Count should return a value of 160 for the A and 20 for the B. But instead I am getting a #VALUE! message in both of the boxes.

1644856000003.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Check that the numbers in col H are real numbers & not text. Also check you don't have any text in that column
 
Upvote 0
Also check to make sure you do not have any errors in columns C or H.
 
Upvote 0
The information in the cells is pasted into the cells using Paste Options "Values". When I manually move the data to the sheet using Copy and then Paste Values it works correctly and sums the numbers as I wanted it to. But when I run the macro to copy the data to the sheet it just returns the #VALUE. But I'm pretty sure the Macro is using "Paste Values" as the method for putting the data into the sheet.
 
Upvote 0
Do you have any "blank" cells in col H?
Also can you please answer the questions asked.
 
Upvote 0
I do not see any errors in Column C or Column H.
As far as the numbers being real numbers versus they being text. I was not sure exactly how to tell that and thus why I was explaining how the data was getting to the sheet. I just tried to format the cells as numbers and when I do that it makes no difference.

Col H does contain "blank" cells.

But as I mentioned above if I paste the data in the cells manually then the formulas appear to work even with the "Blank" cells in Column H.

1644858535374.png
 
Upvote 0
I found the error. I was putting a "" in the cells if they did not contain any information. I changed the formula to put a 0 in the blank cells and the formulas started working properly. When I was copying data manually I was only grabbing the cells that contained data and not going down into the blank cells which is why it worked then. I was not copying over any "" cells. Sorry for using your time which this issue.
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,854
Members
449,096
Latest member
Erald

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