Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text Searching in a Function

Let's say I have one column with data like this: C012

But all I want to do is return all cells in that column that start with "C"
(there are many cells that start with other letters).

I want to use an IF formula that looks at only the first letter in these
cells.

Maybe it would look like this: =IF(A2="C###", but that doesn't work.
Is there a placeholder and format so it only looks at the first letter?

Thanks, Matt
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Text Searching in a Function

=IF(left(A2,1)="C",

"malvis" wrote:

Let's say I have one column with data like this: C012

But all I want to do is return all cells in that column that start with "C"
(there are many cells that start with other letters).

I want to use an IF formula that looks at only the first letter in these
cells.

Maybe it would look like this: =IF(A2="C###", but that doesn't work.
Is there a placeholder and format so it only looks at the first letter?

Thanks, Matt

  #3   Report Post  
Posted to microsoft.public.excel.misc
TGV TGV is offline
external usenet poster
 
Posts: 63
Default Text Searching in a Function

Hi,

Try This

=IF(LEFT(A2,1)="C","C","")

TGV

"Sean Timmons" wrote:

=IF(left(A2,1)="C",

"malvis" wrote:

Let's say I have one column with data like this: C012

But all I want to do is return all cells in that column that start with "C"
(there are many cells that start with other letters).

I want to use an IF formula that looks at only the first letter in these
cells.

Maybe it would look like this: =IF(A2="C###", but that doesn't work.
Is there a placeholder and format so it only looks at the first letter?

Thanks, Matt

  #4   Report Post  
Posted to microsoft.public.excel.misc
TGV TGV is offline
external usenet poster
 
Posts: 63
Default Text Searching in a Function

Hi,

Try This

=IF(LEFT(A2,1)="C","C","")

TGV


"malvis" wrote:

Let's say I have one column with data like this: C012

But all I want to do is return all cells in that column that start with "C"
(there are many cells that start with other letters).

I want to use an IF formula that looks at only the first letter in these
cells.

Maybe it would look like this: =IF(A2="C###", but that doesn't work.
Is there a placeholder and format so it only looks at the first letter?

Thanks, Matt

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
searching for a function Noha Excel Worksheet Functions 7 January 8th 09 02:45 PM
searching for function Adam Excel Discussion (Misc queries) 3 October 2nd 07 09:01 PM
Searching for text strippier Excel Discussion (Misc queries) 2 May 23rd 06 09:08 PM
searching for specific text clerk Excel Discussion (Misc queries) 1 December 7th 05 12:16 AM
help searching text Nikko Excel Discussion (Misc queries) 2 April 28th 05 03:32 PM


All times are GMT +1. The time now is 11:09 AM.

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"