+ Reply to Thread
Results 1 to 5 of 5

fix a multiple IF statement

  1. #1
    Registered User
    Join Date
    11-07-2007
    Posts
    11

    fix a multiple IF statement

    hi guys can you look at this please:

    =IF(G9="N","Free",IF(I9<"5.00","£2.50",IF(I9>"15","£2.50",IF(I9>"25","Free"))))

    basicly i need to work out a delivery system where by if G9 = N then delivery is free, but also i need to work out that if G9 = Y and I9 is between £5 and £15 delivery is £2.50 but also if its greater than £25 its Free and less than "£5" an error is displayed as the order is too small.


    cheers

  2. #2
    Registered User
    Join Date
    11-08-2007
    Posts
    7
    Quote Originally Posted by Breezey
    hi guys can you look at this please:

    =IF(G9="N","Free",IF(I9<"5.00","£2.50",IF(I9>"15","£2.50",IF(I9>"25","Free"))))

    basicly i need to work out a delivery system where by if G9 = N then delivery is free, but also i need to work out that if G9 = Y and I9 is between £5 and £15 delivery is £2.50 but also if its greater than £25 its Free and less than "£5" an error is displayed as the order is too small.


    cheers
    What if it's between £15 and £25?

    Try

    =IF(G9="N","Free",IF(I9<5.00,"Too small",IF(I9<15,"£2.50",IF(I9<25,"It's between 15 and 25","Free"))))
    Last edited by dlloyd; 11-08-2007 at 08:36 AM.

  3. #3
    Registered User
    Join Date
    11-07-2007
    Posts
    11
    everything appears to work except that last part i made an orsder that was £142 just to see and it still says £2.50 perhaps we need another if in there to say if G9=Y with some kind of AND if thats possible in excel

    edit: also still displays £2.50 when the order is less than £5

    Double edit: got this =IF(G9="N","Free",IF(I9<5,"Order Value to Low",IF(I9>15,"£2. 50",IF(I9>25,"Free")))) stops orders less than £5

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You don't say what the charge is between £15 and £25, I'm assuming that's £2.50 too

    =IF(G9="","",IF(OR(G9="N",I9>=25),"Free",IF(I9<5,"Too small",2.5)))

    format as currency

  5. #5
    Registered User
    Join Date
    11-07-2007
    Posts
    11
    hmm im not sure this is all he data i have been given, £25 or over is Free, Between £5 - £15 is £2.50 which i take it as a typo, less than £5 = Error

    Edit: =IF(G9="","",IF(OR(G9="N",I9>=25),"Free",IF(I9<5," Too small",2.5))) this appears to work but i now need to change the order as they could potentially order somthing with free delivery and with somthing that doesnt have free delivery
    Last edited by Breezey; 11-08-2007 at 08:44 AM.

+ 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