+ Reply to Thread
Results 1 to 9 of 9

Need help totalling columns that have multiple if commands

  1. #1
    Registered User
    Join Date
    02-19-2023
    Location
    Wales
    MS-Off Ver
    Latest
    Posts
    4

    Need help totalling columns that have multiple if commands

    Hi all, and thanks for reading my thread.

    I am struggling to total up certain columns that contain multiple if commands

    I want to total all different sizes for order take-offs and have highlighted cells


    I have attached the spreadsheet and to aid in this process

    any help much appreciated

    Joe
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help totalling columns that have multiple if commands

    There's too much stuff in there!!

    Please calculate some expected answers, put them in the sheet, tell us where they are, and how you calculated them manually.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-19-2023
    Location
    Wales
    MS-Off Ver
    Latest
    Posts
    4

    Re: Need help totalling columns that have multiple if commands

    i have added comments in R4-R7 i am just trying to calculate the total of values in each column J,K,L,M, if work if i use =SUM(J2+J3+J4+J5+J6+J7 ETC) But not when i use =SUM(J2:J??) if this makes sense.

    sorry for being so un-knowledgable
    Attached Files Attached Files

  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,946

    Re: Need help totalling columns that have multiple if commands

    Be an idea if you gave us a clue which cells you are adding up and where you want the total

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    will return FALSE if none of the conditions are met.
    It should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    But note also that this will return Text value because the numbers are in quotes. So, it really should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There's a load more brackets than you need. It isn't necessary to put an open bracket in front of each IF. But it won't do any harm, I don't think anyway.
    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


  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help totalling columns that have multiple if commands

    It not lack of knowledge... you know what you're looking at, we don't. So you need to tell us!!

    As TMS said:

    =IF(AP2=0.75,0,(IF(AP2=1,1,(IF(AP2=1.25,0,(IF(AP2=1.5,1,(IF(AP2=1.75,1,(IF(AP2=2,2,(IF(AP2=2.25,1,(IF(AP2=2.5,2,(IF(AP2=2.75,2,(IF(AP2=3,3,(IF(AP2=-0.25,"","")))))))))))))))))))))

    (this is from AQ) willl return real numbers, not text. Then a simple =SUM(J:J)

    returns your total. Tone for AQ/column J.
    Attached Files Attached Files

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: Need help totalling columns that have multiple if commands

    And BTW in formulas such as =SUM(AA980-S980+300) (BRAINS sheet) the SUM function is not necessary =AA980-S980+300 is perfect

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help totalling columns that have multiple if commands

    An alternative (not as sensible as removing the problem "", but quicker) purple cells.

    =--BRAINS!AR2

    copied down and then the SUM works fine. The longer way - removing all those quotation marks is BY FAR the better approach.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-19-2023
    Location
    Wales
    MS-Off Ver
    Latest
    Posts
    4

    Re: Need help totalling columns that have multiple if commands

    removed all quotation marks and it all worked amazing, thanks so much for everyones help much appreciated.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help totalling columns that have multiple if commands

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Totalling duplicate values across multiple columns
    By Andy impossible in forum Excel General
    Replies: 2
    Last Post: 01-29-2015, 06:51 AM
  2. Excel 2007 : Totalling columns in a spreadsheet
    By Puzzled_Pat60 in forum Excel General
    Replies: 3
    Last Post: 12-20-2011, 10:19 PM
  3. Totalling Sorted Columns
    By lt234 in forum Excel General
    Replies: 2
    Last Post: 07-17-2010, 01:44 PM
  4. Totalling columns after using Autofilter on data
    By tomholden in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-31-2007, 09:25 AM
  5. totalling columns when both are populated
    By carsto in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-04-2006, 06:20 PM
  6. Replies: 2
    Last Post: 07-01-2005, 01:05 PM
  7. Totalling values across columns
    By Glenn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2005, 10:06 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