SUM function to account for Text

AntBlabby8

Board Regular
Joined
Apr 18, 2002
Messages
197
I have a very wide spreadsheet, with many columns. In three columns--L, T, and AB--I have an IF formula that can render a sum of three columns to the left in each case, or the text "NO PRODUCT." In Col. AF, I then have a formula that says on Row 3, for example, =SUM(L3,T3,AB3). The problem I am having is if there is NO PRODUCT in either L, T, or AB, I am getting a VALUE! error. And because any or all of the three can have this NO PRODUCT in it, I don't know how to write a formula to get a total, and not a value error. HELP!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
What does your formula look like?

I'm surprised you're having this problem, since the sum function seems to ignore text.
 
Upvote 0
I have a very wide spreadsheet, with many columns. In three columns--L, T, and AB--I have an IF formula that can render a sum of three columns to the left in each case, or the text "NO PRODUCT." In Col. AF, I then have a formula that says on Row 3, for example, =SUM(L3,T3,AB3). The problem I am having is if there is NO PRODUCT in either L, T, or AB, I am getting a VALUE! error. And because any or all of the three can have this NO PRODUCT in it, I don't know how to write a formula to get a total, and not a value error. HELP!
Excel's SUM function assigns a zero value to text, so the appearance of the text "NO PRODUCT" in any or all of the cells you are summing should not produce an error value. Check to see if one or more of the cells you are summing already contains a #VALUE!.
 
Upvote 0
For some reason, the COUNT formula works. I am not sure why, but it does! I guess it is taking just the numbers as the text is not greater than zero theoretically? Anyhow, GREAT! I see what may be the issue. The column is formatted as ACCOUNTING. So it looks like TEXT but it isn't. That must be the problem. I see the words, but Excel sees the error. Hmmm. Anyhow, it's fabulously working now with that formua. Bravo, Mr Excel, to go-to place for us dangerous amateurs at Excel! THANKS AGAIN!
 
Upvote 0

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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