How to count the number of values in a range in a single cell

kpp17

New Member
Joined
Apr 8, 2022
Messages
3
Platform
  1. Windows
Hi all! I am having a hard time figuring this out. I work in ticketing and have a sheet that is showing me all the seating in a venue by section. In one cell it has a range of numbers representing how many seats are on a specific row (ex. 1-10). I would like to create a column next to it showing the total number of seats on that row, so I can then easily add them together for a total. Some rows do now begin with seat 1. Any ideas?

1649434164036.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
@kpp17 Welcome
Maybe like below?

Book1
ABCDE
1
2LevelSectionRowSeatsQty
3North2111,1111
4North2121,1212
5North2135,2117
6North2141,1313
7North2151,1414
8North2161,1414
9North2171,55
Sheet1
Cell Formulas
RangeFormula
E3:E9E3=RIGHT(SUBSTITUTE(D3,","," "),4)-LEFT(SUBSTITUTE(D3,","," "),4)+1
 
Upvote 0
@kpp17 Welcome
Maybe like below?

Book1
ABCDE
1
2LevelSectionRowSeatsQty
3North2111,1111
4North2121,1212
5North2135,2117
6North2141,1313
7North2151,1414
8North2161,1414
9North2171,55
Sheet1
Cell Formulas
RangeFormula
E3:E9E3=RIGHT(SUBSTITUTE(D3,","," "),4)-LEFT(SUBSTITUTE(D3,","," "),4)+1
Exaclty like that! Thank you! I am very new to excel and could not figure it out.
 
Upvote 0
Hi,

Another way:

Book3.xlsx
ABCDE
1
2LevelSectionRowSeatsQty
3North2111,1111
4North2121,1212
5North2135,2117
6North2141,1313
7North2151,1414
8North2161,1414
9North2171,55
Sheet1076
Cell Formulas
RangeFormula
E3:E9E3=RIGHT(D3,LEN(D3)-FIND(",",D3))-LEFT(D3,FIND(",",D3)-1)+1
 
Upvote 0
Hi,

Another way:

Book3.xlsx
ABCDE
1
2LevelSectionRowSeatsQty
3North2111,1111
4North2121,1212
5North2135,2117
6North2141,1313
7North2151,1414
8North2161,1414
9North2171,55
Sheet1076
Cell Formulas
RangeFormula
E3:E9E3=RIGHT(D3,LEN(D3)-FIND(",",D3))-LEFT(D3,FIND(",",D3)-1)+1
Thank you for taking the time to look at this! I'm learning so much seeing how other people approach functions.
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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