Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Todd F.
 
Posts: n/a
Default if statement based on "starts with "

Can you build an if statement in excel that is driven by "starts with"

I have a filed that contains several text statements defining service level.

I have 3 that start with "Next Day" & end with "Drive"
"Over
night AM"
"Over
night PM"
I want the cel with the if statement to say soemthing simple like if it
starts with Next Day place a 1 here, etc.

Is there such a thing as starts with or contains in excel

Thanks for your time
  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default if statement based on "starts with "

=ISNUMBER(MATCH("Next Day*",A2))+0

Todd F. wrote:
Can you build an if statement in excel that is driven by "starts with"

I have a filed that contains several text statements defining service level.

I have 3 that start with "Next Day" & end with "Drive"
"Over
night AM"
"Over
night PM"
I want the cel with the if statement to say soemthing simple like if it
starts with Next Day place a 1 here, etc.

Is there such a thing as starts with or contains in excel

Thanks for your time

  #3   Report Post  
Todd F.
 
Posts: n/a
Default if statement based on "starts with "

thanks but does not help

"Aladin Akyurek" wrote:

=ISNUMBER(MATCH("Next Day*",A2))+0

Todd F. wrote:
Can you build an if statement in excel that is driven by "starts with"

I have a filed that contains several text statements defining service level.

I have 3 that start with "Next Day" & end with "Drive"
"Over
night AM"
"Over
night PM"
I want the cel with the if statement to say soemthing simple like if it
starts with Next Day place a 1 here, etc.

Is there such a thing as starts with or contains in excel

Thanks for your time


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default if statement based on "starts with "

Why not?

If A2 houses "Next Day all will be on Drive"...

=ISNUMBER(MATCH("Next Day*",A2))+0

would return 1.

Todd F. wrote:
thanks but does not help

"Aladin Akyurek" wrote:


=ISNUMBER(MATCH("Next Day*",A2))+0

Todd F. wrote:

Can you build an if statement in excel that is driven by "starts with"

I have a filed that contains several text statements defining service level.

I have 3 that start with "Next Day" & end with "Drive"
"Over
night AM"
"Over
night PM"
I want the cel with the if statement to say soemthing simple like if it
starts with Next Day place a 1 here, etc.

Is there such a thing as starts with or contains in excel

Thanks for your time



--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #5   Report Post  
Todd F.
 
Posts: n/a
Default if statement based on "starts with "

thanks so you are using the isnumber to read a iece of text - the is number
threw me.

"Aladin Akyurek" wrote:

Why not?

If A2 houses "Next Day all will be on Drive"...

=ISNUMBER(MATCH("Next Day*",A2))+0

would return 1.

Todd F. wrote:
thanks but does not help

"Aladin Akyurek" wrote:


=ISNUMBER(MATCH("Next Day*",A2))+0

Todd F. wrote:

Can you build an if statement in excel that is driven by "starts with"

I have a filed that contains several text statements defining service level.

I have 3 that start with "Next Day" & end with "Drive"
"Over
night AM"
"Over
night PM"
I want the cel with the if statement to say soemthing simple like if it
starts with Next Day place a 1 here, etc.

Is there such a thing as starts with or contains in excel

Thanks for your time


--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting rows based on IF statement simmerdown Excel Discussion (Misc queries) 1 September 9th 05 02:18 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Msgbox based on If statement Neil Jimack Excel Worksheet Functions 2 May 11th 05 11:22 PM
IF statement based on data type Reed Excel Worksheet Functions 1 January 20th 05 02:17 PM
Conditional formatting based on if statement. kevin Excel Worksheet Functions 2 January 12th 05 03:07 AM


All times are GMT +1. The time now is 06:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"