+ Reply to Thread
Results 1 to 4 of 4

sum alphanumeric cells

  1. #1
    Registered User
    Join Date
    12-10-2011
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    1

    sum alphanumeric cells

    hi, i have a sheet with a bunch of alphanumeric values and blanks and i need to sum and then make a diference of the values that show like debit.
    below is an example of the data that i have, can you help me with a formula or macro to solve this.
    Notice that there is same blank cells in the midle.
    tks

    CONTRACTS_SELECTED //TRANSACTION_AMOUNT //TRANSACTION_TYPE
    08-12-2011 11:49 // 43,00 EUR // DEBIT
    07-12-2011 18:51 // 243,50 EUR // CREDIT
    07-12-2011 18:47 //4,00 EUR // CREDIT
    07-12-2011 18:43 //145,86 EUR // CREDIT
    07-12-2011 18:39 //797,48 EUR // CREDIT
    07-12-2011 18:35 // 371,48 EUR// DEBIT
    // - //
    // - //
    07-12-2011 18:30 //287,48 EUR// CREDIT
    07-12-2011 18:25 //287,36 EUR// CREDIT

    07-12-2011 18:04 //287,50 EUR// CREDIT
    07-12-2011 17:52 //291,48 EUR// DEBIT
    07-12-2011 17:51 //291,48 EUR// CREDIT

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,897

    Re: sum alphanumeric cells

    You will need a helper column to split the transaction_amount. I used this formula
    =LEFT(B2,LEN(B2)-4)*1
    to convert it to a number. Once you have this, then you can do a sumif on this helper column.
    Look here for how that works.
    http://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: sum alphanumeric cells

    Hi bicas,

    Assuming you have this data in Column A, use following in column B and drag it down:-

    Please Login or Register  to view this content.
    Now for Debit sum, use following formula:-

    Please Login or Register  to view this content.
    and for Credit sum, use following formula:-
    Please Login or Register  to view this content.
    Debit and Credit formula are array ones and need to be entered using shift+ctrl+enter key combination.

    I hope this solves your issue.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: sum alphanumeric cells

    Assume Col_A is Contracts, Col_B is Transaction Amount, Col_C is Type.

    So, try this

    =SUM(IF(C$2:C$15="Debit",--(0&TRIM(SUBSTITUTE(SUBSTITUTE(LOWER(B$2:B$15),"eur",""),",","")))))

    Confirmed with CTRL+SHIFT+ENTER.

    Change Debit to Credit for Cr values.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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