+ Reply to Thread
Results 1 to 6 of 6

Calc sum & avg of a column dependant on values contain in a cell.

  1. #1
    Registered User
    Join Date
    08-30-2014
    Location
    usa
    MS-Off Ver
    13
    Posts
    4

    Calc sum & avg of a column dependant on values contain in a cell.

    Hello all,

    I have a spreadsheet that am pulling my hair out on and could use some help if anyone had a little time as I am almost out of hair !!

    I am looking for a non-VBA way to sum the contents of "i" cells from (Data 1/Column G- from attached spreadsheet) where "i" is the value contained in a cell ($D$1) and multiple this result by the average value of "j" cells from (Data 2/Column H) where "j" is the value contained in a cell ($E$1)
    I have included sample data 1 / data 2 and manually calculated expected values (E5:E28).

    I appreciate any help, advice or feedback.

    Thank you in advance.

    Jeff
    non vba calculations.xlsx

  2. #2
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Calc sum & avg of a column dependant on values contain in a cell.

    Sumif * averageif

  3. #3
    Registered User
    Join Date
    08-30-2014
    Location
    usa
    MS-Off Ver
    13
    Posts
    4

    Re: Calc sum & avg of a column dependant on values contain in a cell.

    I looked at the sumif and averageif and cannot see how to make the number of cell to sum/average dependent on the value in the cells (D1 and E1).

    If you could add a little formula to my attached spreadsheet I would be super appreciative.
    Thanks in advance,
    jeff

  4. #4
    Registered User
    Join Date
    08-30-2014
    Location
    usa
    MS-Off Ver
    13
    Posts
    4

    Re: Calc sum & avg of a column dependant on values contain in a cell.

    pic.JPG

    To add a little clarity perhaps I added the arrows.
    Thanks thanks

  5. #5
    Registered User
    Join Date
    08-30-2014
    Location
    usa
    MS-Off Ver
    13
    Posts
    4

    Re: Calc sum & avg of a column dependant on values contain in a cell.

    Solved....................

  6. #6
    Registered User
    Join Date
    07-30-2011
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Calc sum & avg of a column dependant on values contain in a cell.

    Ahh, clearly I misinterpreted the original question. Did you end up using INDIRECT or OFFSET for your solution?

+ 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. [SOLVED] If values in a column are equal, then need to calc average of values in other columns
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 02:33 PM
  2. [SOLVED] Variable values dependant on values in a cell
    By MJDutton in forum Excel General
    Replies: 4
    Last Post: 04-24-2012, 07:25 AM
  3. Dependant cell values
    By hogarth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-01-2009, 12:24 AM
  4. Add values in column B dependant on the values of A
    By cakers in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2007, 01:10 PM
  5. Replies: 1
    Last Post: 01-26-2006, 02:18 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