Len Left If formula

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
Hi Guys looking for some ideas onthis one

B1 = Due 1 March 2002
Or
B1 = Not Due

In A1 = If B1 left = DUE then A1 = Due
or if B1 Left = Not Due the A1 = Not Due

Hope thats ok guys..

cheers for you help in advance ill need to drag this one down a few billion...

Cheers

Rdgs
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
In A1 put =IF(Left(B1,3)="Due","Due","Not Due")

or if you wanted the Due to stand out:

=IF(Left(B1,3)="Due","Due","")
This message was edited by Steve Hartman on 2002-02-28 06:36
 
Upvote 0
Hi
How about

=IF(LEFT(B1,1)="D","Due",IF(LEFT(B1,1)="N","Not Due",""))

Assumes you don't have anything else in column B starting with D or N

Regards
Derek
 
Upvote 0
Jack,

=IF(LEFT(B1,4)="Due ","Due","Not Due")

where the structure in B is assumed to be:

"Due" followed by a-space followed by a-date. When that's the case, we get "Due" in A,otherwise "Not Due".

Aladin
 
Upvote 0
Just one more for true overkill:
=IF(ISNUMBER(SEARCH("not due",B1)),"not due",IF(ISNUMBER(SEARCH("due",B1)),"due",""))

may help if you have some sloppy typest (like me) or those who don't follow your suggested format
This message was edited by IML on 2002-02-28 07:28
 
Upvote 0

Forum statistics

Threads
1,223,333
Messages
6,171,511
Members
452,407
Latest member
Broken Calculator

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