MacroEcon1337
Board Regular
- Joined
- Mar 16, 2017
- Messages
- 65
I have a single column of values on an excel spreadsheet.
The contents of each individual cell correspond to Gate Codes, and are inputted exactly like the red text below:
example 1: 4
example 2: 4,6
example 3: 2,6,7
example 4: 5,12,1
Note: there will NEVER be a triple digit number - just 1-2 digit numbers (separated by commas).
The problem is I cannot figure out how to extract JUST the individual numbers (without the commas) -- and store them into an array. I thought I solved it, but then it failed on double digit numbers.
Not entirely relevant - but my end goal/purpose here is to subsequently loop through the array contents, then take certain actions based on their values. Any assistance greatly appreciated.
MC
The contents of each individual cell correspond to Gate Codes, and are inputted exactly like the red text below:
example 1: 4
example 2: 4,6
example 3: 2,6,7
example 4: 5,12,1
Note: there will NEVER be a triple digit number - just 1-2 digit numbers (separated by commas).
The problem is I cannot figure out how to extract JUST the individual numbers (without the commas) -- and store them into an array. I thought I solved it, but then it failed on double digit numbers.
Not entirely relevant - but my end goal/purpose here is to subsequently loop through the array contents, then take certain actions based on their values. Any assistance greatly appreciated.
MC