+ Reply to Thread
Results 1 to 5 of 5

Sum range if the values of another column are equal to a cell value & month

  1. #1
    Registered User
    Join Date
    02-03-2015
    Location
    Farmington, NM
    MS-Off Ver
    MS 2010
    Posts
    11

    Sum range if the values of another column are equal to a cell value & month

    I need a formula to populate B4 thru B16, based on the following conditions. I need to sum up all the values in column K (sheet 'SAP PM' top) that have the value of B1 (Sheet 'Cost CM of Location' bottom), in columns C (sheet 'SAP PM' top) and for the month specified in B4 thru B16. B1 is not a fixed value but is linked to a different sheet that has a dropped down list, so If I change the value B1 will change, and so should B4 thru B16. For example, B1 is showing 11697821, so in B$ the value should be adding all the cost from column K, in which column C has the same value as B1 and column H fall in the month of April, since there's only one row this value should be $1309.05. Please see figure below.

    I don't know much on vba so mostly I work with formulas in cells or multiple cells.

    Thanks in advance for the help.
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Sum range if the values of another column are equal to a cell value & month

    Would this work for you? I am assuming the months in the first picture are actually dates formatted to just show the name of the month.

    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Registered User
    Join Date
    02-03-2015
    Location
    Farmington, NM
    MS-Off Ver
    MS 2010
    Posts
    11

    Re: Sum range if the values of another column are equal to a cell value & month

    Hi,

    Well it was only text and not dates, but I formatted it to show Month and year. The function is not working properly it brings random cost from the SAP PM sheet, not really tied to the value of B1, it does bring cost values just not the correct one's. I noticed you placed the formula for DATE, the value 1 for Day is that suppose to change? does it bring all dates from the month?

    Thanks
    Diana

  4. #4
    Registered User
    Join Date
    02-03-2015
    Location
    Farmington, NM
    MS-Off Ver
    MS 2010
    Posts
    11

    Re: Sum range if the values of another column are equal to a cell value & month

    Actually it did work, I was transferring the formula incorrectly, and for the life of me I wasn't noticing until now that one of the ranges I hadn't put the $$ to keep it from changing...Thanks a lot for your help!

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Sum range if the values of another column are equal to a cell value & month

    Oh good, I'm glad it ended up working.

+ 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. Hide row if a cell value in the row does not equal one of values in a range
    By VBanal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-04-2013, 02:18 PM
  2. Sum cells in a range based between two equal cell values in another range
    By sshone1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 08:12 AM
  3. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  4. Replies: 11
    Last Post: 01-18-2013, 04:05 PM
  5. Average range of cells in column if values in adjacent column are equal
    By RyNye in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2012, 10:12 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