+ Reply to Thread
Results 1 to 2 of 2

Select Different Formulas if Within Multiple Value Ranges/Thresholds

Hybrid View

DrSues02 Select Different Formulas if... 01-28-2022, 02:34 PM
protonLeah Re: Select Different Formulas... 01-28-2022, 03:25 PM
  1. #1
    Registered User
    Join Date
    08-02-2004
    Posts
    59

    Select Different Formulas if Within Multiple Value Ranges/Thresholds

    Hi, trying to find a more elegant formula without resorting to a very very long nested IF statement...

    See attached.

    Reference price is in A1. Set of value ranges in A7-B11. Different formulas are calculated if the reference price is within the range of values with an output calculation in A3.

    Want to be able to enter any price in A1, have the excel formula find which low/high range it falls in, then use the correct formula from the options in A3 to return the correct math calculation.

    To note: it's inclusive, 70 would be included in the first row of calculations not the second.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,936

    Re: Select Different Formulas if Within Multiple Value Ranges/Thresholds

    I think your range table setup is wrong. Having a price in both the high and low columns is ambiguous.
    =((B1-B2)*LOOKUP($B$1,$A$7:$A$11,C7:C11))-LOOKUP($B$1,$A$7:$A$11,D7:D11)
    Attached Files Attached Files
    Ben Van Johnson

+ 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. Threshold Formulas - i need a formula to use across 4 thresholds
    By vba_newbie83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-03-2021, 11:08 AM
  2. Shortcut to select visible ranges for formulas?
    By mtamazing in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2019, 05:13 PM
  3. How to select multiple ranges in VBA?
    By buhaj47 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2018, 06:50 AM
  4. [SOLVED] How to Deselect Multiple Ranges on Multiple Sheets After Select & Clear
    By catnam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-20-2014, 02:12 PM
  5. Excel 2008 : Select multiple ranges with VBA
    By Demon4231 in forum Excel General
    Replies: 2
    Last Post: 11-06-2010, 08:12 AM
  6. Select Multiple Ranges
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2009, 08:06 AM
  7. How to select multiple ranges in Excel with vbs
    By Stefan Mueller in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-04-2005, 12:06 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