+ Reply to Thread
Results 1 to 4 of 4

Values in several columns

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Values in several columns

    HI ALL,

    I have a HUGE excel sheet full of macros and calculations on which we are 3 people working usually. I'm trying to add in 1 more calculation. I'm not good at excel I'm just managing the sheet but this time I would need to add this extra complexity.

    I have Column A in which I have up to 650 rows (and growing) the rows contain part descriptions but all of the descriptions start with OB17 or OB18 for example: "OB17 Water ITC - LINX psn" or "OB18 CAC ITC delta".
    in Column B I have measured weights for them.

    So I would like Excel to add all the numbers, which stand beside an OB18 part description.

    I tried it with the IF function but then I would need to add the IF statement for every single row (like =SUM(IF(A10="OB18",B10),IF(A11="OB18",B11) ......) for 650 rows it would take ages and every time we add a new row we would need to add it into this formula, so I don't think this is the right solution for this massive sheet.

    Can someone help please?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Values in several columns

    Try this:

    =SUMIF(A:A,"OB17*",B:B)+SUMIF(A:A,"OB18*",B:B)

    And welcome to the forum!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: Values in several columns

    Thank you that works perfectly!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Values in several columns

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Look up values in 2 adjacent columns. Return values in 3 columns if match.
    By Gssoc777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-04-2015, 12:28 PM
  2. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  3. Locking columns based on calculated cell values in columns across a sheet.
    By andyr826208 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 05:17 AM
  4. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  5. Replies: 2
    Last Post: 03-15-2012, 09:12 AM
  6. columns in excel to reflect array of values entered in previous two columns
    By netvasi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 01:12 AM
  7. Match Columns in 2 Worksheets, return only changed values of other columns
    By cheynooki in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-17-2011, 01:19 PM

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