+ Reply to Thread
Results 1 to 12 of 12

Total Column wise problem

  1. #1
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Total Column wise problem

    hello friends.........


    1. I have two col, Col-A have A,B,C,D…………Y, Z and Col-B have 1,2,3,4………..25,26
    Type DAC in Col-C
    Then it sum the value of DAC, D have 4, C have 3, A have 1, i.e. D=4, A=1, C=3=4+1+3=8 should be the total in Col-D
    If I type ABCDEFGHIJKLMNOPQRSTUVWXYZ=Total should be (Sum the value 1to 26)=351

    2. If I type 1234567 in a column, I want the total of all numbers i.e. 28 should be the total in this example

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Total Column wise problem

    When you say "Type DAC in Col_C" do you mean that cell any cell in column C (C1 or C6 or C17346 for example) could equal "DAC" or is it one letter per cell ie C1 = D, C2 = A, C34 = C? etc

    If you could provide a sample workbook with expected results that would be ideal.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Re: Total Column wise problem

    TEST.jpg please see the screenshot

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Total Column wise problem

    Sum of the letters in C1:

    =SUMPRODUCT(CODE(MID(C1,ROW(INDIRECT("1:"&LEN(C1))),1))-64)

    Sum of the digits in C2:

    =SUMPRODUCT(--(MID(C2,ROW(INDIRECT("1:"&LEN(C2))),1)))

    Is that what you mean?
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Total Column wise problem

    Please attach a sample excel file with expected result
    if the above is the case you can use below formula
    Please Login or Register  to view this content.
    Last edited by samba_ravi; 09-24-2018 at 07:32 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Re: Total Column wise problem

    If i type DAAC, it is giving me 8 although it should be 9,
    DAAC contains A 2times, it calculate A one time

  7. #7
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Total Column wise problem

    Is it possible to have a combination of letters and numbers? eg "DAC12A"?

  8. #8
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Re: Total Column wise problem

    No sir.....

  9. #9
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Total Column wise problem

    I have a VBA solution (which also works for combined letters and numbers although that isn't required)
    Please Login or Register  to view this content.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,940

    Re: Total Column wise problem

    OK Try any one of below formula
    Please Login or Register  to view this content.
    or
    =SUMPRODUCT(LOOKUP(MID($C$1,ROW(INDIRECT("1:"&LEN($C$1))),1),$A$1:$A$26,$B$1:$B$26))

  11. #11
    Forum Contributor
    Join Date
    02-17-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2010
    Posts
    332

    Re: Total Column wise problem

    Thankyou very much sir...........problem solved...........

  12. #12
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Total Column wise problem

    Quote Originally Posted by gyan123 View Post
    If i type DAAC, it is giving me 8 although it should be 9,
    DAAC contains A 2times, it calculate A one time
    Mine calculates 9 for that.

+ 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] need to arrange column wise data to row wise with monthly wise
    By alok.gupta4ever in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-03-2016, 11:11 AM
  2. [SOLVED] Date wise column Total
    By atulexel79 in forum Excel General
    Replies: 9
    Last Post: 08-20-2014, 04:01 AM
  3. [SOLVED] date wise /name wise total with round function
    By hkbhansali in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-03-2014, 11:37 AM
  4. [SOLVED] Date wise column total in another sheet
    By atulexel79 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2014, 05:19 AM
  5. Excel code to represent data from row wise to column wise
    By sreejeshc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2013, 03:45 AM
  6. [SOLVED] I want change the data row wise to coloum wise & coloumn wise to row wise.
    By satputenandkumar0 in forum Excel General
    Replies: 3
    Last Post: 12-20-2012, 08:34 AM
  7. Replies: 4
    Last Post: 08-01-2012, 09:50 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