+ Reply to Thread
Results 1 to 21 of 21

Need Help with IF statement.

  1. #1
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Post Need Help with IF statement.

    Hi,

    I need to do an if statement on a invoice:

    If a customer has brought products over £300 he gets 10% discount.

    cell for total is e20 and the cell that needs to have the sum is e21.

    Thanks in advance.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    Maybe

    =IF(E20="","",IF(E20>300,E20*.9,E20))

  3. #3
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    thanks it worked :D,

    but sorry should have mentioned before if they dont get a discount it should say no/none given, can u help me with this?
    Last edited by rm06; 05-23-2012 at 04:50 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    You could merge two rows for the bit you need bigger text in and leave the other bit as it is.

    Would that do what you mean?

    EDIT: The post above has been edited and the bit I was responding to was deleted. That's why mine makes no sense, not because I've gone bonkers and started answering imaginary questions...
    Last edited by Spencer101; 05-23-2012 at 04:59 PM.

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    Try

    =IF(E20="","",IF(E20>300,E20*.9,"no/none given"))

  6. #6
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    Quote Originally Posted by Spencer101 View Post
    You could merge two rows for the bit you need bigger text in and leave the other bit as it is.

    Would that do what you mean?

    EDIT: The post above has been edited and the bit I was responding to was deleted. That's why mine makes no sense, not because I've gone bonkers and started answering imaginary questions...

    im sorry i accidently deleted it just realised now,

    thanks for answering, eg.jpg

    but as the image shows invoice is making the whole row big and i do not want that to happen, can u still help me?

  7. #7
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    Quote Originally Posted by Cutter View Post
    Try

    =IF(E20="","",IF(E20>300,E20*.9,"no/none given"))
    thanks :D ,

    so if i changed the cell do i just have to change the e20 bit?

  8. #8
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    In that example, highlight cells E1 : G2 and click that "Merge & Center" button that you can see in the top right of the pic.

    Then you can shrink row 2 to fit "address" properly and resize row 1 to make "invoice" fit properly.

    Hope that's what you meant...

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    @Spencer101
    The post above has been edited and the bit I was responding to was deleted. That's why mine makes no sense, not because I've gone bonkers and started answering imaginary questions...
    I figured that out.

  10. #10
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    Quote Originally Posted by Cutter View Post
    @Spencer101

    I figured that out.
    Glad to hear it!

    Just thought I'd clarify though for anyone reading this further down the line.. Because then I really would seem a bit strange

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    @rm06
    so if i changed the cell do i just have to change the e20 bit?
    Yes.

  12. #12
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    Quote Originally Posted by Spencer101 View Post
    In that example, highlight cells E1 : G2 and click that "Merge & Center" button that you can see in the top right of the pic.

    Then you can shrink row 2 to fit "address" properly and resize row 1 to make "invoice" fit properly.

    Hope that's what you meant...
    it didnt change it , this is what happened eg 2.jpg

  13. #13
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    Quote Originally Posted by Cutter View Post
    @rm06


    Yes.
    ok thank you :D

  14. #14
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    You're welcome.

  15. #15
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    Quote Originally Posted by rm06 View Post
    it didnt change it , this is what happened Attachment 157629
    That's because you merged A1:G2.... undo that and then just select E1:G2 and merge.

  16. #16
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    So that it looks like this...

  17. #17
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    its still is not doing that the whole row still goes big

    thanks anyway

  18. #18
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    Quote Originally Posted by Spencer101 View Post
    So that it looks like this...
    I just saw this now, thanks il do that :D

  19. #19
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Need Help with IF statement.

    Not a problem.

  20. #20
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need Help with IF statement.

    @rm06
    Thanks for the 'star tap'. Don't forget to mark your thread as SOLVED (click on Forum Rules @ top of page - see rule #9 for instructions, if needed).

  21. #21
    Registered User
    Join Date
    05-23-2012
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Need Help with IF statement.

    yw, marked solved too

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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