Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Assigning value based on criteria in Formula

I have a column that contains one of two types of values:
"(Name)Name"
"(Number)Name"

On another column I want to assign a tag to it "Manual" or "Auto". If the
cell starts with "(Name)..." I want it to say Auto else Manual. The
parenthesis is part of the value in the cell and I don't want to have to trim
or do any manual manipulation. I tried using the "T" function but it doesn't
work and I can't figure out the correct syntax using a wildcard to tell it if
the value starts with "(" and "text" assign Auto OR if the value starts with
"(" and "number" assign Manual.

Any suggestions?
--
Hile
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Assigning value based on criteria in Formula

Assuming *all* entries are in this format:

(Biff)Name
(1)Name

=IF(AND(LEFT(A1)="(",ISNUMBER(--MID(A1,2,1))),"Manual","Auto")

--
Biff
Microsoft Excel MVP


"Hile" wrote in message
...
I have a column that contains one of two types of values:
"(Name)Name"
"(Number)Name"

On another column I want to assign a tag to it "Manual" or "Auto". If the
cell starts with "(Name)..." I want it to say Auto else Manual. The
parenthesis is part of the value in the cell and I don't want to have to
trim
or do any manual manipulation. I tried using the "T" function but it
doesn't
work and I can't figure out the correct syntax using a wildcard to tell it
if
the value starts with "(" and "text" assign Auto OR if the value starts
with
"(" and "number" assign Manual.

Any suggestions?
--
Hile



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 45
Default Assigning value based on criteria in Formula

Thank you so much. You know I know all those darn functions too, I guess
today is not a "thinking" day for me... duh!

:-)
--
Hile


"T. Valko" wrote:

Assuming *all* entries are in this format:

(Biff)Name
(1)Name

=IF(AND(LEFT(A1)="(",ISNUMBER(--MID(A1,2,1))),"Manual","Auto")

--
Biff
Microsoft Excel MVP


"Hile" wrote in message
...
I have a column that contains one of two types of values:
"(Name)Name"
"(Number)Name"

On another column I want to assign a tag to it "Manual" or "Auto". If the
cell starts with "(Name)..." I want it to say Auto else Manual. The
parenthesis is part of the value in the cell and I don't want to have to
trim
or do any manual manipulation. I tried using the "T" function but it
doesn't
work and I can't figure out the correct syntax using a wildcard to tell it
if
the value starts with "(" and "text" assign Auto OR if the value starts
with
"(" and "number" assign Manual.

Any suggestions?
--
Hile




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Assigning value based on criteria in Formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Hile" wrote in message
...
Thank you so much. You know I know all those darn functions too, I guess
today is not a "thinking" day for me... duh!

:-)
--
Hile


"T. Valko" wrote:

Assuming *all* entries are in this format:

(Biff)Name
(1)Name

=IF(AND(LEFT(A1)="(",ISNUMBER(--MID(A1,2,1))),"Manual","Auto")

--
Biff
Microsoft Excel MVP


"Hile" wrote in message
...
I have a column that contains one of two types of values:
"(Name)Name"
"(Number)Name"

On another column I want to assign a tag to it "Manual" or "Auto". If
the
cell starts with "(Name)..." I want it to say Auto else Manual. The
parenthesis is part of the value in the cell and I don't want to have
to
trim
or do any manual manipulation. I tried using the "T" function but it
doesn't
work and I can't figure out the correct syntax using a wildcard to tell
it
if
the value starts with "(" and "text" assign Auto OR if the value starts
with
"(" and "number" assign Manual.

Any suggestions?
--
Hile






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
Formula for product based on criteria? Klee Excel Worksheet Functions 4 August 28th 07 03:28 AM
Assigning a Value based on Results JerryS Excel Worksheet Functions 2 June 15th 07 04:47 PM
Executing a formula based on criteria being met confused teacher Excel Worksheet Functions 2 August 17th 06 06:56 AM
conditional formula - based on 2 separate criteria andrewo-s Excel Worksheet Functions 10 March 14th 05 03:35 AM
Need formula based on criteria. Me New Users to Excel 1 February 5th 05 05:47 PM


All times are GMT +1. The time now is 02:39 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"