+ Reply to Thread
Results 1 to 6 of 6

Add numeric value from text cells in horizontal column

  1. #1
    Registered User
    Join Date
    06-16-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    59

    Add numeric value from text cells in horizontal column

    Hi,
    Please help me to add numeric value from cell (which have text and number) in horizontal way .
    I have some data (AL - 1) or (AL - 0.5) from cell "C9" to cell"AG9". some cells are blank and some have "Weekend" mentioned in cells "C9" to "AG9".
    I want to add all 1 and 0.5 in cell "AH9"

    Thanks in advance for help ! I have attached the sheet for better understanding.
    Attached Files Attached Files
    Last edited by sanjay.k; 07-26-2020 at 07:45 AM. Reason: spelling

  2. #2
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Add numeric value from text cells in horizontal column

    Hi sanjay,

    may be each of the AL - XX use =IF(LEFT(H9,4 )="AL -", VALUE(RIGHT(H9,LEN(H9)-SEARCH("-",H9))),"") to convert them to number in another row, the sum it AH9
    Attached Files Attached Files
    Christopher Yap

  3. #3
    Registered User
    Join Date
    06-16-2020
    Location
    India
    MS-Off Ver
    2019
    Posts
    59

    Re: Add numeric value from text cells in horizontal column

    Hi ,
    thanks Bluesky63 for your help.
    However i cannot do in another row as i have may be 1000 employees

  4. #4
    Forum Contributor
    Join Date
    03-18-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2016 / 2019
    Posts
    251

    Re: Add numeric value from text cells in horizontal column

    Hi Sanjay,

    Use array then
    =SUM(IF(LEFT(A9:AG9,4 )="AL -", VALUE(RIGHT(A9:AG9,LEN(A9:AG9)-SEARCH("-",A9:AG9))),""))

    after entering the formual, CTRL-SHIFT-ENTER
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Add numeric value from text cells in horizontal column

    Does your sample data include all possible variants?

    If so is the simple formula below enough for your purposes?

    It also gives the expected result of 14.

    In AH9:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Add numeric value from text cells in horizontal column

    Or try
    =SUMPRODUCT(COUNTIFS(C9:AF9,"*"&{1,5})/{1,2})

+ 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: 2
    Last Post: 02-24-2020, 06:13 AM
  2. [SOLVED] Search Column text and add the numeric values of each hit from another Column
    By mslabb in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-18-2020, 11:10 AM
  3. Replies: 10
    Last Post: 07-26-2017, 05:11 AM
  4. Horizontal Filter Macro - Based on the Text in each Column
    By seash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2016, 06:53 AM
  5. Replies: 3
    Last Post: 05-13-2014, 10:48 PM
  6. Sort Column containing text and numeric data
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2011, 10:37 PM
  7. Sum column that contains both numeric and text values
    By chromachem in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2010, 09:33 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