+ Reply to Thread
Results 1 to 2 of 2

SUMPRODUCT based on cell values from a different column

  1. #1
    Registered User
    Join Date
    05-26-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    50

    SUMPRODUCT based on cell values from a different column

    Hi, I've got the below SUMPRODUCT which works fine but I'd like to make it so that I don't have to specify the range for it whenever it changes. I've tried using IF of sorts but couldn't really get it to work, so thought I'd reach out.
    In short, instead of specifying the range, I'd like it to just say e.g. "AA:AA", etc. and ONLY consider values for the calculation if the corresponding value in column 'A' = "XX".
    Please also note that values start in row 4 and the header is in row 3, and that won't change.

    =SUMPRODUCT(AA4:AA147,$N$4:$N$147)/SUM(N4:N147)

    Many thanks!

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

    Re: SUMPRODUCT based on cell values from a different column

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

+ 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] how to insert empty rows based on column B cell values and paste above values with macro?
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2018, 11:47 AM
  2. [SOLVED] sumproduct to count year values in range based on another cell year value
    By mr_mango81 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-04-2017, 12:46 AM
  3. Replies: 2
    Last Post: 05-25-2016, 12:46 PM
  4. Replies: 9
    Last Post: 09-07-2014, 05:42 PM
  5. Merge values from column in one cell, based on duplicates in another column
    By Rawland_Hustle in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-24-2014, 11:04 AM
  6. [SOLVED] Sumproduct data based on values in column A
    By excelactuary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2013, 09:12 AM
  7. Add cell values in a column based on other column
    By nileshrg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-24-2011, 05:00 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