+ Reply to Thread
Results 1 to 8 of 8

Looking for a number in Range

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Looking for a number in Range

    This is like tax question.
    If Salary A1 < C1 then D1
    If Salary A1 is between C1 and C2 then D2
    ....
    If A1=90234 then at B2 I sould get D3=20

    Range C1:D6
    C1= 60000 D1=10
    C2= 90000 D2=16
    C3= 123000 D3=20
    C4= 162000 D4=24
    Last edited by ionelz; 08-21-2020 at 12:46 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for a number in Range

    Your Question makes no sense.

    What is B1 and what is B2?

    And If A1 is < B1 why are we even talking about D1 to D4
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Looking for a number in Range

    Yes, sorry, corrected...

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for a number in Range

    You should use a formula like

    =LOOKUP(A1,{0,60000,90000,123000,162000},{0,10,20,30,40,40})

    then you do not need to use a table.

  5. #5
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Looking for a number in Range

    Thanks
    I would like to be able to change in range C1:D4, not in formula

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Looking for a number in Range

    Try
    =LOOKUP(A1,C1:C4,D1:D4)

  7. #7
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Looking for a number in Range

    I get D2 (not D3), so I get the more close value

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Looking for a number in Range

    Hi

    First value must be 0, i.e. C1=0 ; D1=10, ...

    You can use another formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    See the file
    Attached Files Attached Files

+ 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. Query date range and ref number match to return another reference number
    By 27paul0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 07:31 AM
  2. [SOLVED] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  3. [SOLVED] Count number of occurances below a range, within a range, and below a range
    By maacmaac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2013, 11:36 PM
  4. Counting number of values within a date range equal or great to a number
    By diablo_719 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 02:55 PM
  5. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  6. Replies: 1
    Last Post: 01-17-2013, 10:44 AM
  7. [SOLVED] Define a range of fixed number of columns, but unlimited number of rows
    By ccopac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2012, 02:23 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