+ Reply to Thread
Results 1 to 9 of 9

if(and(...... formula including another if for false

  1. #1
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    if(and(...... formula including another if for false

    Hi

    I have a formula which im having a bit of trouble with returning the answer, it either needs to say £27.50, £2.75, or 0

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have tried changing it around and keep getting #value error, what have i missed or what is missing, is this formula even possible?

    Dan

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: if(and(...... formula including another if for false

    Perhaps
    Please Login or Register  to view this content.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: if(and(...... formula including another if for false

    Hi,

    Looks fine to me. Are you sure that I7 contains the text "Rte"? Are you aware that the FIND function is case sensitive?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if(and(...... formula including another if for false

    Hi Thanks for your responses,

    Pepe your formula returns 2.75 even though Rte is in cell I7

    Xor yes Rte is the correct text and sometimes it will be in that cell othertimes not.

    I have 3 conditions
    If Rte and cell I29 = yes then its 27.50
    If cell 29 = yes but there is no Rte in I27 then its 2.75
    If neither conditions are met then its 0

    I think because I29 must contain yes to add any value its not working correctly, and im unusre how to adjust the formula or tell the formula if it says yes but DOESNT contain Rte

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: if(and(...... formula including another if for false

    Hi,

    Can you post a small sample workbook illustrating this?

    Regards

  6. #6
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if(and(...... formula including another if for false

    Hi Yeah no problems please see attached thank you

    Sample 28102013.xlsx

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

    Re: if(and(...... formula including another if for false

    The formula Pepe posted works for me in cell I31 (and when filled right to K31)

    In I31, result is 27.5 (I7 does contain Rte AND I29 = Yes)
    In J31, result is 2.75 (J7 does NOT contain Rte AND J29 = Yes)
    In K31, result is 0 (K7 does NOT contain Rte AND K29 does NOT equal Yes)

    Another way to write it is:
    =IF(I29="Yes",IF(ISNUMBER(FIND("Rte",I7)),27.50,2.75),0)

  8. #8
    Forum Contributor
    Join Date
    04-12-2013
    Location
    Crayford, kent
    MS-Off Ver
    Excel 2013
    Posts
    394

    Re: if(and(...... formula including another if for false

    ooops my bad, i just re tried Pepes formula and realised i was posting it into column F! which was then looking at column I as i hadnt changed the formula, Sorry Pepe

    Thank you both, both work and i appreciate both of your answers you have saved me much stress over this small formula

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: if(and(...... formula including another if for false

    Np, we all make mistakes. Good way to learn

+ 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. Need help including new row into formula automatically
    By ChaeDoc in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-15-2013, 07:48 AM
  2. Including formula for RSD in Excel
    By Satisha Puttachari in forum Excel General
    Replies: 1
    Last Post: 01-12-2011, 08:00 AM
  3. Including 0 in formula (#DIV/0!)
    By UMOP in forum Excel General
    Replies: 7
    Last Post: 01-31-2010, 08:12 AM
  4. Copy worksheet including named ranges not including macros
    By urungus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 01:38 PM
  5. Formula including dates
    By R L Sandel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2005, 07:36 AM

Tags for this Thread

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