+ Reply to Thread
Results 1 to 7 of 7

Add a value to a letter

  1. #1
    Registered User
    Join Date
    09-13-2016
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    22

    Add a value to a letter

    Hello,

    i am making a spreadsheet for vacation at my work, and need a formular that kan add a value to a letter.

    I want to make "H"=1, and "h"=0.5

    So that when the letter is typed in a row, it will at last show how many days of vacation the person has taking.
    if "H" is typed 4 times, and "h" is typed 4 times, it will at the ens say that the person has used 6 vacation days.

    I have tried to use "=SUM(COUNTIF(D7:NE7,{"H","h"})*{1,0.5})

    where D7:NE7 is the row that the letters should be typed in.

    Although i maybe think that excel can't differentiate lower case and upper case. Do any of you know if it is possible to get excel to do that?


    Best regards Nanna

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Add a value to a letter

    Try this ...

    =COUNT(FIND("H",D7:NE7))+COUNT(FIND("h",D7:NE7))/2

    Enter with Ctrl+Shift+Enter.

  3. #3
    Registered User
    Join Date
    09-13-2016
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    22

    Re: Add a value to a letter

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =COUNT(FIND("H",D7:NE7))+COUNT(FIND("h",D7:NE7))/2

    Enter with Ctrl+Shift+Enter.
    It doesn't work. Shouldn't it also contain some kind of definition of the letter's value?

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Add a value to a letter

    It worked for me.
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Add a value to a letter

    Quote Originally Posted by Nannakl View Post
    It doesn't work.
    Should work.

    Did you array enter the formula?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    09-13-2016
    Location
    Munich, Germany
    MS-Off Ver
    2013
    Posts
    22

    Re: Add a value to a letter

    Sorry, it was me who accidentally marked a wrong cell, that contained another formula. It works perfectly now, thank you!

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Add a value to a letter

    Good deal. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 07-19-2016, 11:25 AM
  2. Replies: 6
    Last Post: 03-30-2016, 04:28 PM
  3. Replies: 25
    Last Post: 04-21-2015, 10:19 AM
  4. [SOLVED] Excel formula returns 2014 for the letter e and 0 for the letter s
    By jennynz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2014, 06:53 PM
  5. [SOLVED]Order Code has 1 letter added need function to delete said letter
    By king10001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2013, 01:25 PM
  6. Replies: 5
    Last Post: 07-13-2006, 12:15 AM
  7. Replies: 2
    Last Post: 05-09-2005, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1