+ Reply to Thread
Results 1 to 6 of 6

help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

  1. #1
    Registered User
    Join Date
    05-06-2020
    Location
    Seoul
    MS-Off Ver
    365
    Posts
    4

    help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60"))

    This is the formula I'm working with. I want to replace the 60 with .60*F3, but of course =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<(.60*F3)")) does not work. Do I need to insert a new INDIRECT parameter? and, if so, where? What would the new formula be?

    Additional Info: F3 contains a number that is manually input.

    Thanks for any help.
    Last edited by pandakor; 05-06-2020 at 08:33 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    Try this

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<"&60*F3))

  3. #3
    Registered User
    Join Date
    05-06-2020
    Location
    Seoul
    MS-Off Ver
    365
    Posts
    4

    Re: help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    Quote Originally Posted by Phuocam View Post
    Try this

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<"&60*F3))
    This may be working. I have to plug it into a few more equations and I'll let you know soon. Thanks.

  4. #4
    Registered User
    Join Date
    05-06-2020
    Location
    Seoul
    MS-Off Ver
    365
    Posts
    4

    Re: help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    Wow. amazing. I"m an excel amateur, just self taught off the internet, and I struggled with that for hours. Thank you so much. It works perfectly across all my equations.

    I have one last question, and it may not even be possible, but is there a way to simplify this equation? However, it does work just fine for my purposes. It just looks messy and I'd like to learn a new way to do it.

    =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),">="&0.6*F3)) - SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),">="&0.65*F3))

    So, if F3 is 100, this formula would give me the total number of cells with a value of between 60 and 65 in L7:30 across multiple sheets.

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    Try

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&A25:A31&"'!L7:L30"),">="&0.6*F3,INDIRECT("'"&A25:A31&"'!L7:L30"),"<="&0.65*F3))

  6. #6
    Registered User
    Join Date
    05-06-2020
    Location
    Seoul
    MS-Off Ver
    365
    Posts
    4

    Re: help with =SUMPRODUCT(COUNTIF(INDIRECT("'"&A25:A31&"'!L7:L30"),"<60")

    Quote Originally Posted by Phuocam View Post
    Try

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&A25:A31&"'!L7:L30"),">="&0.6*F3,INDIRECT("'"&A25:A31&"'!L7:L30"),"<="&0.65*F3))
    I had to modify it ever so slightly for my purposes, as I didn't want it to include values of 65, so I just removed the equal to sign:

    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&A25:A31&"'!L7:L30"),">="&0.6*F3,INDIRECT("'"&A25:A31&"'!L7:L30"),"<"&0.65*F3))

    Again wow. And so quick on the responses. I can't thank you enough kind stranger.

    Edit: I also learned about COUNTIFS: a valuable lesson.
    Last edited by pandakor; 05-06-2020 at 09:14 AM.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 35
    Last Post: 01-13-2016, 02:16 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 5
    Last Post: 10-12-2010, 06:46 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