+ Reply to Thread
Results 1 to 8 of 8

Data Total for different column

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    Gazipur, Bangladesh
    MS-Off Ver
    2007
    Posts
    22

    Exclamation Data Total for different column

    Dear Dxpert

    I have some data as Qty & Value for 98 items.
    here
    a2 = Qty.
    b2 = Value
    c2 = Qty
    d2 = Value

    like this continuously 98 items and Last column would be show the Total Qty. & Total Value.
    Now I tried manually -
    =a2+c2+e2+g2+.........

    I believe there is more easy formula, to avoid manual input.

    Please Help

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Data Total for different column

    Use this in cell GO2 to sum the quantity:

    =SUMPRODUCT($A$2:$GN$2,--(MOD(COLUMN($A$2:$GN$2),2)=1))

    and this in GP2 for the values:

    =SUMPRODUCT($A$2:$GN$2,--(MOD(COLUMN($A$2:$GN$2),2)=0))

    Note the only difference is the 1 or 0 at the end (denoting odd or even columns respectively).

    Hope this helps.

    Pete

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Data Total for different column

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Data Total for different column

    @Pete: ah, beat me to it. In my defence, it's bloody hard work typing and editing formulae in Excel on an iPad

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Data Total for different column

    Hi Trev,

    I see you have used a shorter range than me - I assumed that when the OP said "... 98 items..." he meant there would be 98 * 2 columns worth of data, i.e. 196 columns.

    Pete

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Data Total for different column

    Hi Pete: you may well be right. I guess, between the two suggestions, the OP will be able to establish a happy medium once he understands the principle.

    Trevor

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Data Total for different column

    @kmaient: is this resolved now?

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Data Total for different column

    @kmaient: Thanks for the rep. Welcome back?

+ 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. total a colum using data from another column
    By RagDyer in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 09-06-2005, 07:05 PM
  2. total a colum using data from another column
    By Duffey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. total a colum using data from another column
    By Duffey in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-30-2005, 02:05 AM

Tags for this Thread

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