+ Reply to Thread
Results 1 to 4 of 4

IF(AND formula for multiple range

Hybrid View

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    irvington
    MS-Off Ver
    Excel 2010
    Posts
    6

    IF(AND formula for multiple range

    Hi,

    I terribly failed to accomplish this task -

    range of value 0 to 9.99 = $2,400
    10 to 19.99 = $4,800
    20 to 29.99 = $7,200 and
    30 and above = $9,600

    Is there a better way to accomplish this? Or IF (AND logic should work, but I could not figure it out - Please help

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: IF(AND formula for multiple range

    welcome to the forum, Green Gable. assuming your value you're checking is in A1, then do up a table say in C1:C4 containing the minimum values to get the amount & D1:D4 containing the values of the amount. then just:
    =LOOKUP(A1,$C$1:$C$4,$D$1:$D$4)

    or if you dont want the table:
    =LOOKUP(A1,{0;10;20;30},{2400;4800;7200;9600})

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    irvington
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: IF(AND formula for multiple range

    much appreciated, it helped me and saved time

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: IF(AND formula for multiple range

    =LOOKUP(A1,$C$1:$C$4,$D$1:$D$4) can also be
    =LOOKUP(A1,$C$1:$D$4)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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: 4
    Last Post: 04-21-2011, 02:59 PM
  2. Replies: 3
    Last Post: 12-02-2010, 03:15 AM
  3. Multiple Range Formula
    By Earl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2006, 03:45 PM
  4. Multiple range formula
    By pdgood in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-17-2006, 05:40 AM
  5. [SOLVED] Apply formula to a range with multiple selections
    By deekaye@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2005, 02: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