Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default If Begins With - Not Working - Please Help

I have a column, H, that contains various product item numbers. I need the
column next to it to return certain values depending on the first two letters
in the item number in column H. I have tried the fomula below, but it only
returns blanks. My item numbers, for example, would read IN056242. If it
begins with IN, I need it return a Yes.

=IF(LEFT(H2)="IN*","Yes",IF(LEFT(H2)="NS*","No","" ))

Any help with what I am doing wrong would be greatly appreciated.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default If Begins With - Not Working - Please Help

On Mon, 4 Aug 2008 12:00:07 -0700, pt_lily
wrote:

I have a column, H, that contains various product item numbers. I need the
column next to it to return certain values depending on the first two letters
in the item number in column H. I have tried the fomula below, but it only
returns blanks. My item numbers, for example, would read IN056242. If it
begins with IN, I need it return a Yes.

=IF(LEFT(H2)="IN*","Yes",IF(LEFT(H2)="NS*","No"," "))

Any help with what I am doing wrong would be greatly appreciated.



=IF(LEFT(H2,2)="IN","Yes",IF(LEFT(H2,2)="NS","No", ""))
--ron
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default If Begins With - Not Working - Please Help

Thank you so much! This works perfectly.

"Ron Rosenfeld" wrote:

On Mon, 4 Aug 2008 12:00:07 -0700, pt_lily
wrote:

I have a column, H, that contains various product item numbers. I need the
column next to it to return certain values depending on the first two letters
in the item number in column H. I have tried the fomula below, but it only
returns blanks. My item numbers, for example, would read IN056242. If it
begins with IN, I need it return a Yes.

=IF(LEFT(H2)="IN*","Yes",IF(LEFT(H2)="NS*","No"," "))

Any help with what I am doing wrong would be greatly appreciated.



=IF(LEFT(H2,2)="IN","Yes",IF(LEFT(H2,2)="NS","No", ""))
--ron

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default If Begins With - Not Working - Please Help

On Mon, 4 Aug 2008 12:34:11 -0700, pt_lily
wrote:

Thank you so much! This works perfectly.

"Ron Rosenfeld" wrote:

On Mon, 4 Aug 2008 12:00:07 -0700, pt_lily
wrote:

I have a column, H, that contains various product item numbers. I need the
column next to it to return certain values depending on the first two letters
in the item number in column H. I have tried the fomula below, but it only
returns blanks. My item numbers, for example, would read IN056242. If it
begins with IN, I need it return a Yes.

=IF(LEFT(H2)="IN*","Yes",IF(LEFT(H2)="NS*","No"," "))

Any help with what I am doing wrong would be greatly appreciated.



=IF(LEFT(H2,2)="IN","Yes",IF(LEFT(H2,2)="NS","No", ""))
--ron



Glad to help. Thanks for the feedback.

--ron
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
Sumif and begins with nich Excel Discussion (Misc queries) 6 July 22nd 09 12:11 PM
If statement - begins with grantr Excel Discussion (Misc queries) 6 October 31st 08 06:35 PM
Begins with Chris Lewis[_2_] Excel Programming 0 January 10th 07 02:32 PM
Begins with [email protected] Excel Programming 1 January 10th 07 01:54 PM
Begins with Don Guillett Excel Programming 0 January 10th 07 01:52 PM


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