+ Reply to Thread
Results 1 to 10 of 10

how to sum alpha numeric?

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    dwarka,new delhi
    MS-Off Ver
    Excel 2010
    Posts
    10

    Post how to sum alpha numeric?

    dear friends,

    i have one more problem, how to add alpha numeric numbers

    like a12
    b34
    c1l
    d57
    total 104
    creating a function?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to sum alpha numeric?

    Hi Yogesh,

    If you have your data in column A, use following function to get the numbers out in column B and then you can easily sum them up.

    Please Login or Register  to view this content.
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Last edited by dilipandey; 12-21-2011 at 10:42 AM.
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: how to sum alpha numeric?

    Are you sure that works?

    Try in B1:

    =LOOKUP(9.999999999E+307,--("0"&MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0 123456789")),ROW($1:$30))))

    copied down.

    Then sum column B.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to sum alpha numeric?

    Yogesh, I forgot to mention that it is a Array formula and need to be entered using key combination. Ctrl+Alt+Enter

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    11-23-2011
    Location
    dwarka,new delhi
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: how to sum alpha numeric?

    thank you nbvc and mr. dilip,

    it worked fantastically well counting only numeric value.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to sum alpha numeric?

    You are welcome Yogesh.

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: how to sum alpha numeric?

    Quote Originally Posted by dilipandey View Post
    Yogesh, I forgot to mention that it is a Array formula and need to be entered using key combination. Ctrl+Alt+Enter

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Even with CSE confirmation, it yields #VALUE error, because your formula will only replace "a". Substitute is not an "array formula" function on it's own.

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to sum alpha numeric?

    Oops... yes you are right.
    It was somewhere in my mind and I just tried it with only "a34" and it worked... but yes you are right, it will not work for others...

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Registered User
    Join Date
    11-23-2011
    Location
    dwarka,new delhi
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: how to sum alpha numeric?

    well mr. dilip and Nbvc i am looking for a function to be created in vba would you help me to create a function?

  10. #10
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: how to sum alpha numeric?

    Hi Yogesh,

    For VBA function, see the below link which will help you extract the number and then you can easily obtain their sum.

    http://www.ozgrid.com/VBA/ExtractNum.htm

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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