+ Reply to Thread
Results 1 to 4 of 4

Sum Alternate Cells

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    10

    Sum Alternate Cells

    Hi

    I need to sum alternate cells. So in the attachment which is part of the data i need the total pallets in one cell and the total cartons.

    rec.xlsx

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sum Alternate Cells

    This will do the calc for you...
    =SUMIF($B$7:$Q$7,"Pallets",$B8:$Q8)

    but 1st, remove the trailing space in "Pallets " in your headings
    Then change "Pallets" in the formula to "Cartons
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Sum Alternate Cells

    Hiii t_man000,
    =SUMIF($B$7:$Q$7,"*Pallets*",$B8:$Q8)
    =SUMIF($B$7:$Q$7,"*Cartons*",$B8:$Q8)

    This will work for you without removing spaces..
    Last edited by mangesh.mehendale; 07-24-2015 at 01:39 AM.
    Don`t care, take care...

    Regards,
    Mangesh

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Sum Alternate Cells

    Mangesh, I agree with you completely that your formulas will work without the need to remove those extra spaces

    However, it would be considered that the data is "dirty" with those extra spaces, and unless you can remember that they are there, they will undoubtedly cause more problems down the road. It is always - ALWAYS - better to try and clean up your data, rather than work around sloppy data input


+ 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. Alternate color of font in two cells
    By ballan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2012, 09:36 PM
  2. Countif for alternate cells
    By kpavansharma in forum Excel General
    Replies: 8
    Last Post: 02-07-2012, 03:07 PM
  3. List Alternate Cells
    By ChrisMattock in forum Excel General
    Replies: 3
    Last Post: 05-19-2011, 08:43 AM
  4. Averaging Alternate Cells
    By newz in forum Excel General
    Replies: 3
    Last Post: 07-21-2010, 05:52 PM
  5. Lowest amount among three alternate cells
    By ahsk in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-24-2010, 06:12 PM
  6. Macro to populate alternate cells in a row with a value
    By bernmc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2009, 10:02 AM
  7. summing up alternate cells
    By michaelkwc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2008, 02:35 AM
  8. [SOLVED] Selecting alternate cells
    By Jackie D in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-20-2006, 02:55 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