Skip to main content
Tweeted twitter.com/StackWebApps/status/1329484602960916481
edited tags
Link
marikamitsos
  • 13.1k
  • 4
  • 34
  • 59
removed tag from title; edited tags
Source Link

Google Sheets: How to convert strings separated by comma from base 36 to decimal

I'm getting input from a google form. An associate scans a QR code giving a string like ^12t34:1
Cell^12t34:1

Cell B1 = ^12t34:1^12t34:1

The string between the ^ and : is base36. I can use

C1 =DECIMAL(SUBSTITUTE(REGEXREPLACE(B1,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),36) and get 1810624

But associates can scan multiple entries in a single cell like Cell B1 = ^12345:1, ^54321:1, ^ph345:1, ^a4321:1

using the same formula I get a #NUM! error, so I used a split formula

=DECIMAL(Split(SUBSTITUTE(REGEXREPLACE(B3,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),", "),36)

but it only returns the result for the first entry = 1776965

i'mI'm trying to convert all entries from a single cell containing

^12345:1, ^54321:1, ^ph345:1, ^a4321:1

and keep them separated by a comma and space:

1776965, 8588665, 42787589, 16986745

Google Sheets: How to convert strings separated by comma from base 36 to decimal

I'm getting input from a google form. An associate scans a QR code giving a string like ^12t34:1
Cell B1 = ^12t34:1

The string between the ^ and : is base36. I can use

C1 =DECIMAL(SUBSTITUTE(REGEXREPLACE(B1,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),36) and get 1810624

But associates can scan multiple entries in a single cell like Cell B1 = ^12345:1, ^54321:1, ^ph345:1, ^a4321:1

using the same formula I get a #NUM! error, so I used a split formula

=DECIMAL(Split(SUBSTITUTE(REGEXREPLACE(B3,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),", "),36)

but it only returns the result for the first entry = 1776965

i'm trying to convert all entries from a single cell containing

^12345:1, ^54321:1, ^ph345:1, ^a4321:1

and keep them separated by a comma and space:

1776965, 8588665, 42787589, 16986745

How to convert strings separated by comma from base 36 to decimal

I'm getting input from a google form. An associate scans a QR code giving a string like ^12t34:1

Cell B1 = ^12t34:1

The string between the ^ and : is base36. I can use

C1 =DECIMAL(SUBSTITUTE(REGEXREPLACE(B1,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),36) and get 1810624

But associates can scan multiple entries in a single cell like Cell B1 = ^12345:1, ^54321:1, ^ph345:1, ^a4321:1

using the same formula I get a #NUM! error, so I used a split formula

=DECIMAL(Split(SUBSTITUTE(REGEXREPLACE(B3,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),", "),36)

but it only returns the result for the first entry = 1776965

I'm trying to convert all entries from a single cell containing

^12345:1, ^54321:1, ^ph345:1, ^a4321:1

and keep them separated by a comma and space:

1776965, 8588665, 42787589, 16986745

Source Link

Google Sheets: How to convert strings separated by comma from base 36 to decimal

I'm getting input from a google form. An associate scans a QR code giving a string like ^12t34:1
Cell B1 = ^12t34:1

The string between the ^ and : is base36. I can use

C1 =DECIMAL(SUBSTITUTE(REGEXREPLACE(B1,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),36) and get 1810624

But associates can scan multiple entries in a single cell like Cell B1 = ^12345:1, ^54321:1, ^ph345:1, ^a4321:1

using the same formula I get a #NUM! error, so I used a split formula

=DECIMAL(Split(SUBSTITUTE(REGEXREPLACE(B3,"((?:.*?,)(\^)|:[0-9][0-9]{0,1})", ""), "^", ""),", "),36)

but it only returns the result for the first entry = 1776965

i'm trying to convert all entries from a single cell containing

^12345:1, ^54321:1, ^ph345:1, ^a4321:1

and keep them separated by a comma and space:

1776965, 8588665, 42787589, 16986745