+ Reply to Thread
Results 1 to 4 of 4

IF a range of number equals a set $value

  1. #1
    Registered User
    Join Date
    10-14-2014
    Location
    Minneapolis
    MS-Off Ver
    2010
    Posts
    2

    IF a range of number equals a set $value

    Hello,

    I'm trying to figure out the formula for mile chart for our customers.. Please try and make it as simple as possible

    What I'm trying to do is have it so the customer can just put in whatever mile they want, like 249 miles and it will pull the specific $ I have set in the C2 through C152

    So 1 through 49 will pull the $405.39 or 90 through 99 will pull $447.62 and so on..

    1 49 $405.39
    50 59 $413.84
    60 69 $422.28
    70 79 $430.73
    80 89 $439.17
    90 99 $447.62

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: IF a range of number equals a set $value

    =INDEX(C1:C6,MATCH(E2,A1:A6,1))

    Put your minimal mileage values in A1:A6.
    Put your maximum mileage values in B1:B6.
    Put your dollar value in C1:C6.
    Put miles driven in E2.

    Any mileage over 99 will still fall in you maximum dollar value.

  3. #3
    Registered User
    Join Date
    10-14-2014
    Location
    Minneapolis
    MS-Off Ver
    2010
    Posts
    2

    Re: IF a range of number equals a set $value

    That worked perfectly Butcher1.. Thanks for the fast response..

  4. #4
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: IF a range of number equals a set $value

    Hi curts.

    Welcome to the forum...

    Glad our forum contributor helped you....

    Don't forget to say thanks by adding *Add Reputation to the user who helped you. Also, take few seconds to mark this thread as SOLVED.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

+ 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. [SOLVED] If each cell in range equals 0 then clear contents of range and move to the next row
    By dagardner in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-19-2014, 08:44 PM
  2. [SOLVED] if cell above number equals Value, sum all number across all rows and columns
    By Portermt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2013, 06:20 PM
  3. VBA - Input Value If Column Number Equals "x" within Non-Contiguous Named Range
    By greenexcel12345 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2011, 02:23 PM
  4. Replies: 15
    Last Post: 06-27-2011, 08:58 PM
  5. if a:a (range) equals january and c:c equals gas then add g:g ($)
    By BCOz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2005, 03:45 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