+ 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
    Office 365
    Posts
    2,108

    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)

Similar Threads

  1. [SOLVED] Concat String and Integer variables to create filename
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2014, 07:14 AM
  2. Excel VBA Help with integer variables and flagqoutas?
    By bigal24ak in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-02-2014, 02:54 PM
  3. [SOLVED] how to create multiple text files with different variables inside
    By girishbjp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2013, 11:46 PM
  4. [SOLVED] Create variables, perform replace, then write text file.
    By tunerX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-16-2012, 02:02 AM
  5. [SOLVED] Replace cells and create dummy variables
    By slacknoise in forum Excel General
    Replies: 7
    Last Post: 06-18-2012, 02:40 PM
  6. Solver - Changing cells to text values not integer
    By Kinnan in forum Excel General
    Replies: 0
    Last Post: 08-15-2010, 08:46 AM
  7. [SOLVED] Concatenate two variables (String & Integer)
    By Sreenivas Varadhan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2005, 09:35 AM

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