Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 2nd, 2008, 10:47 AM
epena epena is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 2 epena User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 36 sec
Reputation Power: 0
Help! Need Excel2007Macro to create text value

I am in the urgent need for a Ecel 2007 Macro that can identify the first character in cells from Column X, then place a text value in Column AC, same Row.
Example1; if first character in Cell X:10 is B then enter the word Student in Cell AC:10.
Example2; if first character in Cell X:11 is M then enter the word Master in Cell AC:11.

Please Help, Urgent.

Reply With Quote
  #2  
Old September 20th, 2008, 04:16 AM
mecanicu mecanicu is offline
anonymous
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 244 mecanicu User rank is Private First Class (20 - 50 Reputation Level)mecanicu User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 12 h 21 m 10 sec
Reputation Power: 12
It's not a macro, it's a formula. Put this in cell AC:10

=IF(OR(LEFT(X10;1)="b";LEFT(X10;1)="B");"Student";IF(OR(LEFT(X10;1)="m";LEFT(X10;1)="m");"Master";""))

and it will do the job
attn: you might have another separator for functions variables instead of ";" use the one from your computer

Reply With Quote
  #3  
Old September 23rd, 2008, 10:53 AM
epena epena is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2008
Posts: 2 epena User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 36 sec
Reputation Power: 0
Quote:
Originally Posted by mecanicu
It's not a macro, it's a formula. Put this in cell AC:10

=IF(OR(LEFT(X10;1)="b";LEFT(X10;1)="B");"Student";IF(OR(LEFT(X10;1)="m";LEFT(X10;1)="m");"Master";""))

and it will do the job
attn: you might have another separator for functions variables instead of ";" use the one from your computer



Thank you very much for your help. But still, I may be doing something wrong.

My excel is 2007 and that might be the reason for not working.
Could you please verify in real time, if it will work as provided in Excel 2007.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Help! Need Excel2007Macro to create text value


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap