If formula with Left formula

bh24524

Active Member
Joined
Dec 11, 2008
Messages
317
Office Version
  1. 2021
  2. 2007
I am looking to see if I can use a formula to state Yes or No if part of a cell is greater than or equal to a certain value. The code in the cell reads something like this in A1:

20 C FD

In B1 I want it to say "Yes" if the value of the first two characters is greater than 15. I used a formula like this thinking it would work:
Excel Formula:
=IF(LEFT(A1,2)>=15,"Yes","No")

It did not however, and I believe it is because it converts it to text maybe? I had tried 14 C FD as a test and it said Yes which is wrong.

Is there a way around this to make it work so that 15 or higher would be Yes and below 15 would be No?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
If all the cells start with a 2 digit number try
Excel Formula:
=IF(LEFT(A1,2) + 0>=15,"Yes","No")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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