+ Reply to Thread
Results 1 to 2 of 2

help - need to create variables (text=integer) and sum the cells

  1. #1
    Registered User
    Join Date
    10-02-2019
    Location
    israel
    MS-Off Ver
    365
    Posts
    2

    help - need to create variables (text=integer) and sum the cells

    hello
    I'm working on a shift arrangement file in excel, and i want that every week the excel will sum automatically the number of hours that every worker worked..
    now i am sum this manually.
    the issue is that i want the excel will recognize letters as the numbers that i will initialiize to it.

    like : a=2, b=5 , c=1.

    and : sum = a+b+c+c = 9
    excel forum.PNG
    how can i do this ?
    i have knowledge in some programming languages

    thanks

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    1,576

    Re: help - need to create variables (text=integer) and sum the cells

    Try like this: =SUM(IF(ISTEXT(L8:F8),LOOKUP(L8:F8,{"a","b","c"},{2,5,1}))).
    It is an array formula, so use Ctrl+Shift+Enter instead of regular Enter to confirm it.
    Click the * to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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