+ Reply to Thread
Results 1 to 7 of 7

Nested IF formula

  1. #1
    Registered User
    Join Date
    01-14-2013
    Location
    Epsom, Surrey
    MS-Off Ver
    Excel 2002
    Posts
    4

    Nested IF formula

    Could anyone tell me how to write a nested if formula please?

    What I need to write is IF cell f2 is greater than or = 100 and cell g2 is greater than or = 78 then put a 1 in cell h2 if not leave blank.

    What I have written but it doesn't seem to like is =IF(AND(F2>="100",G2>="78"),1,"")

    Any help would be greatly appreciated.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Nested IF formula

    hi loulibelle, welcome to the forum. you are close! just remove the double quotes.
    =IF(AND(F2>=100,G2>=78),1,"")

    by putting double quotes for numbers means you are looking for text

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Nested IF formula

    Let remove " in your formula
    Quang PT

  4. #4
    Registered User
    Join Date
    01-14-2013
    Location
    Epsom, Surrey
    MS-Off Ver
    Excel 2002
    Posts
    4

    Re: Nested IF formula

    Worked a treat, thank you so very much

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Nested IF formula

    Hi Everyone, this is my first post.

    I'm trying to use the IF function to reduce a list of prices by a percentage, with varying percentages based on what the original price is.

    My reduction percentages should be as follows:
    Under 100 = 9% reduction
    Over 100 = 11% reduction
    Over 300 = 13% reduction
    Over 500 = 16% reduction
    Over 1000 = 20% reduction

    My starting formula (all original prices are in column A):

    =IF(A1>100,(A1*0.89),(A1*0.91))

    This works for the over and under 100 percentages, but I can't work out how to add more IF's into the same formula. I've been trying for the last 2 hours to get additional IF's into the same line but I can't get it to work.

    I'm no excel wizard. This is the most complicated thing I've ever attempted and could really use someones help!

    Thanks in advance!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Nested IF formula

    @mikeskins84

    You should read the Forum Rules at the top of the screen. These tell you that you should not ask a question in someone else's thread - rather, you should start your own thread.

    Pete

  7. #7
    Registered User
    Join Date
    01-15-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: Nested IF formula

    Hi Pete,
    Apologies. My logic was to find a thread related to what I'm doing rather than start a fresh. Should have read the rules!

+ 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