+ Reply to Thread
Results 1 to 2 of 2

IF, AND to satisfy IF range

  1. #1
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Question IF, AND to satisfy IF range

    Hi,

    I'm trying to write the following formula but keep getting an error and I cannot seem to find where:


    =IF(Q15<5, 0, if(and(Q15>5,Q15<8,sum(Q15*9.61),if(and(Q15>8,q15<12,sum(q15*13.94),if(and(q15>12,Q15<24,sum(q15*22.96),"")))))))


    Can anyone point me in the right direction?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: IF, AND to satisfy IF range

    Try this:

    =IF(Q15<5,0,Q15*LOOKUP(Q15,{5,8,12},{9.61,13.94,22.96}))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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