#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Quick Question

Using Microsoft Excel 2003...

I am working on creating an "IF" Function and here is what I would like for
it to do.
I have Column A filled in with all these ID's that start with either TRE or
CL.
In Column B I would like an if function that will T if the info in Column A
begins with TRE and C if it begins with CL.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Quick Question

=LEFT(A1,1)

no IFs are needed
--
Gary''s Student - gsnu200834


"Dave" wrote:

Using Microsoft Excel 2003...

I am working on creating an "IF" Function and here is what I would like for
it to do.
I have Column A filled in with all these ID's that start with either TRE or
CL.
In Column B I would like an if function that will T if the info in Column A
begins with TRE and C if it begins with CL.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Quick Question

On Feb 18, 9:35 am, Dave wrote:
In Column B I would like an if function that will T
if the info in Column A begins with TRE and C if it
begins with CL.


The simplest formula might be:

=left(A1,1)

But that assumes that A1 contains only "TRE..." or "CL...", or you
don't really care.

A more careful formula might be:

=if(left(A1,2)="CL","C",if(left(A1,3)="TRE","T","" ))


----- original posting -----

On Feb 18, 9:35*am, Dave wrote:
Using Microsoft Excel 2003...

I am working on creating an "IF" Function and here is what I would like for
it to do. *
I have Column A filled in with all these ID's that start with either TRE or
CL.
In Column B I would like an if function that will T if the info in Column A
begins with TRE and C if it begins with CL.

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Quick Question

If those are the only 2 options, =LEFT(A2) and copy down (unless you
*really* insist on using IF).
--
David Biddulph

"Dave" wrote in message
...
Using Microsoft Excel 2003...

I am working on creating an "IF" Function and here is what I would like
for
it to do.
I have Column A filled in with all these ID's that start with either TRE
or
CL.
In Column B I would like an if function that will T if the info in Column
A
begins with TRE and C if it begins with CL.

Thanks



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
Quick Question N.F[_2_] Excel Discussion (Misc queries) 1 July 2nd 07 10:38 PM
Quick Question Brian Hamilton Excel Worksheet Functions 2 October 27th 06 05:51 PM
quick question tmela Excel Discussion (Misc queries) 2 August 19th 06 02:56 AM
Quick little question ben simpson Excel Discussion (Misc queries) 3 April 11th 06 02:35 PM
Quick Question Nikki Excel Worksheet Functions 4 January 31st 06 02:51 PM


All times are GMT +1. The time now is 05:34 PM.

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

About Us

"It's about Microsoft Excel"