Desperate need help today converting ad size to decimal size

petice

Board Regular
Joined
May 14, 2002
Messages
74
=IF(LEN(M39),IF(ISNUMBER(LEFT(M39,1)+0),IF(ISNUMBER(LEFT(M39,4)+0),1/MID(M39,3,2),1/MID(M39,3,1)),1),"")

For print advertising sales. We have various sizes of ads that I need to convert to a decimal size. The ad sizes are a combination of fractions and text such as

1/4S-COL meaning this is a 1/4 square ad that is color. The formula works on all fractions except
1/12S-COL
1/16S-COL
1/24S-COL
1/48S-COL
can anybody tell me why it isn't working on any of the small fractions?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Re: Desperate need help today converting ad size to decimal

petice said:
=IF(LEN(M39),IF(ISNUMBER(LEFT(M39,1)+0),IF(ISNUMBER(LEFT(M39,4)+0),1/MID(M39,3,2),1/MID(M39,3,1)),1),"")

For print advertising sales. We have various sizes of ads that I need to convert to a decimal size. The ad sizes are a combination of fractions and text such as

1/4S-COL meaning this is a 1/4 square ad that is color. The formula works on all fractions except
1/12S-COL
1/16S-COL
1/24S-COL
1/48S-COL
can anybody tell me why it isn't working on any of the small fractions?

I get...

{0.25;
0.0833333333333333;
0.0625;
0.0416666666666667;
0.0208333333333333}
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,432
Members
451,705
Latest member
Priti_190

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