+ Reply to Thread
Results 1 to 6 of 6

Multiple =IF(AND

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Devon,England
    MS-Off Ver
    Excel 07
    Posts
    7

    Multiple =IF(AND

    Hi All.

    Firstly I'm pretty much a total newbie with Excel, so the answers are probably out there, but I end up getting more confused, because I need to adjust the examples I find to suit me, and I end up messing it up somehow.

    I currently have the following (which works):-
    =IF(AND(A2>=0,A2<=10), A2+0.5,)

    So currently A2 has a value of 5, so it adds 0.5 as needed, to give me my 5.5.
    What I need it to do is say A2 had a value of between 11 and 20, it would add 1.5 rather than the 0.5 it adds for any number between 0 and 10. But I still need it to check A2 isn't between 0 and 10, and add that 0.5 if it was.

    Many Thanks.

    PS I haven't used my exact numbers because it's still a WiP, however it would be very very close to what I need it to do.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple =IF(AND

    Sounds like a job for a lookup..

    =LOOKUP(A2,{0,11,21},{0.5,1.5,2.5})

  3. #3
    Registered User
    Join Date
    11-17-2015
    Location
    Devon,England
    MS-Off Ver
    Excel 07
    Posts
    7

    Re: Multiple =IF(AND

    Ok thanks it helps, how do I add on the value of A2?

    Currently A2 value of 5 gives an answer of 0.5, where as it needs to be added onto the value of A2, so it would be 5.5.

    Or do I just have to run a simple "add" formula in another cell?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple =IF(AND

    Ok, that would be

    =A2+LOOKUP(A2,{0,11,21},{0.5,1.5,2.5})

  5. #5
    Registered User
    Join Date
    11-17-2015
    Location
    Devon,England
    MS-Off Ver
    Excel 07
    Posts
    7

    Re: Multiple =IF(AND

    Awesome, thank you.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Multiple =IF(AND

    You're welcome.

+ 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] SUMPRODUCT of multiple columns with multiple criteria over multiple sheets
    By BellyGas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2015, 08:27 AM
  2. Replies: 2
    Last Post: 05-26-2015, 07:29 PM
  3. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  4. [SOLVED] Multiple issues - Multiple IF staements with multiple answers, or other coding.
    By inzanesrt4 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 08:53 PM
  5. [SOLVED] Large spreadsheet; multiple scores on multiple dates for multiple students
    By MelindaCapri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2012, 06:03 PM
  6. Replies: 5
    Last Post: 11-04-2010, 06:02 AM
  7. Multiple charts over multiple sets of data over multiple worksheets.
    By matrocka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2007, 10:01 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