How to ignore letters in a formula

IvanMD

New Member
Joined
Mar 27, 2011
Messages
7
Hello,

I am creating a music chart list that contains numbers like 1, 2b, 3, 4, 5b....
I am using this formula to get the peak position in a range:

=MIN(L129:DE129)

It works when there is no "b" in the numbers, is there a way to tell it to ignore the "b"?

Thanks in advance for your help,
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
try this one, Ctrl+Shift+Enter for the array formula:
=MIN(IFERROR(1/SUBSTITUTE(L129:DE129,"b",)^-1,"@"))
 
Upvote 0
The nature and scope of your challenge is not clear.
Do you need the smallest or largest number?
How do 2 and 2b compare?
How many letters do you use?

An alternative to the suggestion that you received may be to custom format the cells that require a letter.
See below.
The custom format is like #"b"

T202006a.xlsm
BC
216
316
3a
Cell Formulas
RangeFormula
B2B2=MIN(IFERROR(1/SUBSTITUTE(L129:DE129,"b",)^-1,"@"))
C2C2=MAX(IFERROR(1/SUBSTITUTE(L129:DE129,"b",)^-1,"@"))
B3B3=MIN(L129:DE129)
C3C3=MAX(L129:DE129)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Hi Dave,

The music list I'm creating is based on the Billboard magazine charts, back when records used to have 2 sides, sometimes both sides would chart the same week and they would be listed as #, and #b for the flip side, but in some cases the flip side would stand alone and be listed just as #. I'm looking for a formula to determine the lowest number (peak position) in a range. The range could look like this: 10, 8, 8b, 5b, 3, 2b, 7, 10, where 2 is the peak position.

Thank you,
 
Upvote 0
Thanks for the information.
Either of the suggestions should work for you.
Neither suggestion differentiates between 2 and 2b.

T202006a.xlsm
ABCDEFGHIJ
2Peak
3Numbers with text "b"21088b5b32b710
4Numbers with formatting 21088b5b32b710
3a
Cell Formulas
RangeFormula
B3B3=MIN(IFERROR(1/SUBSTITUTE(C3:J3,"b",)^-1,"@"))
B4B4=MIN(C4:J4)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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