+ Reply to Thread
Results 1 to 4 of 4

Trying to use dynamic operators in Sumproduct formulas with Pull-Down menus

  1. #1
    Registered User
    Join Date
    10-17-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Question Trying to use dynamic operators in Sumproduct formulas with Pull-Down menus

    I am having a lot of trouble here, consider the following:

    =SUMPRODUCT(($AH$15:$AH$63>=$C93)*($AH$15:$AH$63<$C94)*($Y$15:$Y$63>=0.8))

    In this formula Column AH represents Due Dates, cells C93 and C94 return dates between 1/1/14 and 1/1/15, and column Y returns loans with ratios >= 80% for due dates in 2014. I would like to have my users able to specify the operator (i.e. <,>,<=, etc.) from a pull-down menu in Cell D145 and type a ratio target (say .8 for 80% or 1 for 100%) into Cell E145.

    I have tried to concatenate the results of cells D145 and E145 to replace the ">=" and .8 in this part of my formula ($Y$15:$Y$63>=0.8), allowing users to get results dynamically. I think I'm getting errors because Concatenation returns a string, but I cannot for the life of me figure out how to replace the variables in the equation using other cells as inputs (in this case, of course, D145 and E145.

    Does anyone know how this can be done? I would very much appreciate the help of any Forum members who have dealt with problems like this one.

    Thanks.
    Last edited by Gretschman; 01-29-2014 at 03:05 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Trying to use dynamic operators in Sumproduct formulas with Pull-Down menus

    Hi and welcome to the forum

    Have you tried using INDIRECT() in there?

    If that doesnt work, maybe use nested IF()'s and duplicate the formula with different signs, to swap from 1 to the other?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Trying to use dynamic operators in Sumproduct formulas with Pull-Down menus

    Are you trying to count the matching rows?

    Try a COUNTIFS:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then you can choose an operator in cell D145, and a value in E145.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    10-17-2013
    Location
    Washington, DC
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up SOLVED Re: Trying to use dynamic operators in Sumproduct formulas with Pull-Down menus

    Thanks to both of you, the problem has been solved. I am so appreciative of your speedy replies!

+ 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. Pull Down Menus
    By tagsale in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-05-2013, 01:21 AM
  2. pull down menus.
    By robwoolly in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-30-2007, 06:57 AM
  3. hyper links in pull down menus
    By Wayne Knazek in forum Excel General
    Replies: 2
    Last Post: 06-26-2006, 09:45 AM
  4. hyper links in pull down menus
    By Wayne Knazek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2006, 08:35 AM
  5. Pull down menus possible in excel?
    By bwallan in forum Excel General
    Replies: 1
    Last Post: 01-20-2006, 03:00 PM

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