Character count, multiplication and based on cell value

Manoj K

New Member
Joined
Oct 22, 2021
Messages
31
Office Version
  1. 2013
Platform
  1. Windows
First of all I am sorry, there were some mistake in my question submitted earlier.

I have a file containing 14 columns. I would like to get answers i.e. number of characters without space from column 2 (description) multiplied with quantity in column 6 either in column 7, or 8, or 9 or ….. 13 based on value in column 5. Example “if value in column 5 is 3, then the character count with quantity multiplied from column 6 should come in column 9” like if value in column 5 is 8, then the character count with quantity multiplied from column 6 should come in column 13”, etc, etc.. Please help.
 

Attachments

  • Screenshot 2024-06-24 120748.jpg
    Screenshot 2024-06-24 120748.jpg
    56.8 KB · Views: 20

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You haven't displayed any row numbers so I'm having to guess what the rows are.
Assuming "AIR LINE" is on row 4

INDEX(G4:N4,1,E4)

should return the value to multiply the character count by
 
Upvote 0
i want count numbers of charactors in column No. 2 for each row and result in column No. 7, 8, 9, 10,11,12 or 13 based on value in column 5
 
Upvote 0
In that case why is K value 42? I don't see 42 characters in "| CT WATER OUTLET"
and L value should be 26 not 24
M value shoudn't be 42 either.
 
Upvote 0
In that case why is K value 42? I don't see 42 characters in "| CT WATER OUTLET"
and L value should be 26 not 24
M value shoudn't be 42 either.
it is mannual counting error, that is why I am looking for some formula
 
Upvote 0
This assumes data starts on row 4, adjust formula as necessary
In G
=IF(COLUMN()-6=$E4,(LEN($C4)-(LEN($C4)-LEN(SUBSTITUTE($C4," ","")))),"")

copy to the right and down for as many rows is needed
 
Upvote 0
This assumes data starts on row 4, adjust formula as necessary
In G
=IF(COLUMN()-6=$E4,(LEN($C4)-(LEN($C4)-LEN(SUBSTITUTE($C4," ","")))),"")

copy to the right and down for as many rows is needed
not getting the result
 
Upvote 0
Except for some of the capitalization I have recreated your sheet, which helps us better than a picture by the way.

charlen.xlsx
ABCDEFGHIJKLMN
11234567891011121314
2S. No.DescriptionB/GInchQty1"2"3"4"5"6"8"B/G
31↓Air Line218
42Filter ML Tank15203112900
53↓CT Nwater Inlet10205342150
64↑CT Water Out let2528342150
75T-LOL CAP 5.0 KL KNOCK OUT TANK26166124416
86↓PROCESS WATER LINE2654117130
Sheet1


What are you expecting exactly, and where and why?
 
Upvote 0
You're saying you're not getting the result, but I have to guess that it's not that you are not getting a result, but not the result you want.

Is this what you want?

charlen.xlsx
ABCDEFGHIJKLMN
11234567891011121314
2S. No.DescriptionB/GInchQty1"2"3"4"5"6"8"B/G
31↓Air Line21 8     
42Filter ML Tank152031  12    900
53↓CT Nwater Inlet102053    42  150
64↑CT Water Out let25283      42150
75T-LOL CAP 5.0 KL KNOCK OUT TANK261661     25 416
86↓PROCESS WATER LINE26541   17   130
Sheet1
Cell Formulas
RangeFormula
G3:M8G3=IF($E3&""""=G$2,LEN(SUBSTITUTE($B3," ",""))*$F3,"")
 
Upvote 0
Solution
You're saying you're not getting the result, but I have to guess that it's not that you are not getting a result, but not the result you want.

Is this what you want?

charlen.xlsx
ABCDEFGHIJKLMN
11234567891011121314
2S. No.DescriptionB/GInchQty1"2"3"4"5"6"8"B/G
31↓Air Line21 8     
42Filter ML Tank152031  12    900
53↓CT Nwater Inlet102053    42  150
64↑CT Water Out let25283      42150
75T-LOL CAP 5.0 KL KNOCK OUT TANK261661     25 416
86↓PROCESS WATER LINE26541   17   130
Sheet1
Cell Formulas
RangeFormula
G3:M8G3=IF($E3&""""=G$2,LEN(SUBSTITUTE($B3," ",""))*$F3,"")
Yes, it worked well. Thanks
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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