Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to recognise a small letter as being different to a capital le

Looking to use 'h' in an attendance record to denote 1/2 day's holiday taken,
then the 'H' denotes a whole day

How would this be possible? Can't see how to get the function to recognise
'h' as being different to 'H' in order to use a function
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How to recognise a small letter as being different to a capital le

Use =EXACT()
--
Gary's Student


"Suza" wrote:

Looking to use 'h' in an attendance record to denote 1/2 day's holiday taken,
then the 'H' denotes a whole day

How would this be possible? Can't see how to get the function to recognise
'h' as being different to 'H' in order to use a function

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default How to recognise a small letter as being different to a capital le

Use the "Code" function... =CODE(A1)
It returns 72 for "H" and 104 for "h".
(it reads the first character in a cell)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Suza"
wrote in message
Looking to use 'h' in an attendance record to denote 1/2 day's holiday taken,
then the 'H' denotes a whole day

How would this be possible? Can't see how to get the function to recognise
'h' as being different to 'H' in order to use a function
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default How to recognise a small letter as being different to a capital le

Boy, you guys are quick. I had to take a call and came back to find
all these answers. But I'll still throw my answer into the ring, on
the "more than one way to skin a cat" theory:
=SUMPRODUCT(--(ISNUMBER(FIND("h",A1:A10,1))))

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default How to recognise a small letter as being different to a capital le

Try something like this:

With
A1:F1 containing any values, including "H" and "h" values

This formula counts each "H" as 1 and each "h" as 0.5 then sums those values.
G1: =SUMPRODUCT(EXACT(A1:F1,"H")+EXACT(A1:F1,"h")*0.5)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"Suza" wrote:

Looking to use 'h' in an attendance record to denote 1/2 day's holiday taken,
then the 'H' denotes a whole day

How would this be possible? Can't see how to get the function to recognise
'h' as being different to 'H' in order to use a function

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
How to change cases from small to capital in all cells? Khoshravan Setting up and Configuration of Excel 3 September 18th 06 09:26 PM
New Validation option to format 1st letter as Capital letter Jeff Excel Discussion (Misc queries) 5 July 13th 06 05:11 AM
Default Capital letter for 1st letter of a word Jeff Excel Discussion (Misc queries) 6 July 10th 06 08:36 AM
Countif a small or capital letter hodkd Excel Worksheet Functions 5 October 11th 05 02:55 AM
Sentence with first letter in Capital, rest all in small. Shrikant Excel Discussion (Misc queries) 3 September 1st 05 11:23 AM


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