Sum row of text with assigned values to numeric cells

Tsclute

New Member
Joined
Jun 8, 2020
Messages
4
Platform
  1. Mobile
Since I do not know what I am doing I am unable to find a previous thread that applies.

I create crochet patterns and am using Excel for help.

I have 2 "words" with assigned values. Either word can appear in any column.

Data info:
Inc = 2, dec = 1

Rows Col2 Col3 Col4 Total Stitches
Row1 inc 4sc inc (8)
Row2 dec 6sc (7)
Row3 6sc inc (8)

Please let me know if you know additional info.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi and welcome to MrExcel

Try this array formula:

varios 08jun2020.xlsm
ABCDE
1Total
2Inc4Inc8
3dec6sc7
46scInc8
Hoja1
Cell Formulas
RangeFormula
E2:E4E2=SUM(IFERROR(SUBSTITUTE(SUBSTITUTE(B2:D2,"Inc",2),"dec",1)+0,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
@DanteAmor
I have the advantage of being able to edit the OP & see the correct layout, it looks like

+Fluff New.xlsm
ABCD
1
2inc4scinc
3dec6sc
46scinc
Main
 
Upvote 0
Thanks Fluff, in that case it could be like this:

varios 08jun2020.xlsm
ABCDE
1Total
2inc4scinc8
3dec6sc7
46scinc8
Hoja1
Cell Formulas
RangeFormula
E2:E4E2=SUM(IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B2:D2,"sc",""),"inc",2),"dec",1)+0,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
One more question. When I applied the formula, it did not add #sc. In the first row, I get a total of 4 from the inc columns. How do I correct this?
 
Upvote 0
One more question. When I applied the formula, it did not add #sc. In the first row, I get a total of 4 from the inc columns. How do I correct this?
Maybe what does not add are the texts "inc", check that the texts are in lower case "inc" as they are in the formula.
 
Upvote 0
Or try this

varios 08jun2020.xlsm
ABCDE
1Total
2INC4scInc8
3Dec6sc7
46scinc8
Hoja1
Cell Formulas
RangeFormula
E2:E4E2=SUM(IFERROR(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(B2:D2),"sc",""),"inc",2),"dec",1)+0,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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