#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default letter case?

How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in B1:B50
whose complimenting values I would like to + or - from the values attributed
to the text in D1:D50 depending on the case of that text.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default letter case?

If there is a single character in A1 then:

=IF(AND(CODE(A1)64,CODE(A1)<91),"upper","lower")


--
Gary's Student


"pacent" wrote:

How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in B1:B50
whose complimenting values I would like to + or - from the values attributed
to the text in D1:D50 depending on the case of that text.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default letter case?

You can test it like so

=EXACT(B1,LOWER(B1))

or

=EXACT(B1,UPPER(B1))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"pacent" wrote in message
...
How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in

B1:B50
whose complimenting values I would like to + or - from the values

attributed
to the text in D1:D50 depending on the case of that text.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default letter case?

How about for all caps?


"Gary''s Student" wrote:

If there is a single character in A1 then:

=IF(AND(CODE(A1)64,CODE(A1)<91),"upper","lower")


--
Gary's Student


"pacent" wrote:

How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in B1:B50
whose complimenting values I would like to + or - from the values attributed
to the text in D1:D50 depending on the case of that text.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default letter case?

Allow me to clarify my ? -- the text is ALL CAPS vs Capitalized (not entirely
lower case). Is it possible?


"Gary''s Student" wrote:

If there is a single character in A1 then:

=IF(AND(CODE(A1)64,CODE(A1)<91),"upper","lower")


--
Gary's Student


"pacent" wrote:

How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in B1:B50
whose complimenting values I would like to + or - from the values attributed
to the text in D1:D50 depending on the case of that text.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default letter case?

Bob Phillips has the correct approach:

=IF(EXACT(A1,UPPER(A1)),"all upper",IF(EXACT(A1,LOWER(A1)),"all
lower","mixed"))

--
Gary's Student


"pacent" wrote:

Allow me to clarify my ? -- the text is ALL CAPS vs Capitalized (not entirely
lower case). Is it possible?


"Gary''s Student" wrote:

If there is a single character in A1 then:

=IF(AND(CODE(A1)64,CODE(A1)<91),"upper","lower")


--
Gary's Student


"pacent" wrote:

How might I create an IF formula to recognize whether text in a column is
lower or upper case so that the text-related values may be added or
subtracted based on the case of the text? For example, I have text in B1:B50
whose complimenting values I would like to + or - from the values attributed
to the text in D1:D50 depending on the case of that text.

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
VBA Code Cell Mate Excel Discussion (Misc queries) 4 January 9th 06 08:52 PM
convert numbers to text bellman Excel Discussion (Misc queries) 0 October 4th 05 10:28 PM
reminder notifications in a column L Mieth Excel Discussion (Misc queries) 6 June 10th 05 11:00 AM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM


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