+ Reply to Thread
Results 1 to 5 of 5

Select a value in a range

  1. #1
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    Lightbulb Select a value in a range

    Hello folks,

    I have a list of values. I pick one of that values random with a formula: =CHOOSE(RANDBETWEEN(1;8);G1;G4;G7;G10;G13;G16;G19;G22)

    I need to pick one of that same values with a formula but that choosen value must be greater or the same then A2.

    It took me already some days to accomplish this. Can anybody help me a bit? Thanks so much :-)

    Feel free to download my example for a better understanding.


    grid
    Attached Files Attached Files
    Last edited by grid; 04-27-2021 at 01:22 PM.

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Select a value in a range

    b2=MAX(IF(G1:G22>=A2,G1:G22))

    control+shift+enter

  3. #3
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Select a value in a range

    @CARCALLA, thanks, that will show a 0 value in B2 so that isn't working, it has to pick a random value of the list that is higher or equal then A2

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Select a value in a range

    After you type in the formula, don't just press enter.
    Instead, press CTRL + SHIFT + ENTER

    If you've already entered the formula, then highlight the cell with the formula and press F2.



    Then press CTRL + SHIFT + ENTER


    When entered correctly, the formula will be enclosed in {brackets}
    Last edited by CARACALLA; 04-27-2021 at 02:33 PM.

  5. #5
    Registered User
    Join Date
    11-05-2009
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Select a value in a range

    CARACALLA, thanks, now it will return a value but always the highest, it should pick a random value of the list that is higher or equal then A2

+ 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: 8
    Last Post: 03-24-2021, 08:36 AM
  2. Make 'ActiveSheet.Range("C5:N100").Select' - select a dynamic range of cells
    By white_ross in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2016, 10:00 AM
  3. Select range using .End(xldown).Row.select
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2015, 07:12 AM
  4. .select method with worksheets object ex. Sheets("Sheet1").range.select fail
    By RobCan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-19-2014, 07:01 PM
  5. Newbie: Auto Select/un-Select an Range of Slicer Items
    By luckyali in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-23-2014, 09:52 AM
  6. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  7. send to range, popup box to input what the range should be each time/select range
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2012, 01:37 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