+ Reply to Thread
Results 1 to 10 of 10

Assistance Require with IF, ELSE statement

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Assistance Require with IF, ELSE statement

    Hi,

    I'm new to these forums. I thought I would request here for help, since this is bugging me how to do it.

    What I want to do is make an IF ELSE function, but in the ELSE side, I want to write a formula. I'll explain. My IF will state "=IF>=.78,"You're Fine",You Need 'x' to get to 78%".

    So, my question is, how to I begin to write a formula for 'you need 'x' to get to 78%. Here is how I have outlined my spreadsheet.

    Cell A1=1
    Cell A2=0
    Cell A3=1
    Cell A4=(A1-A3)/Sum(A1:A3)

    If I use the above example, I'm at 0%. Now, I need 8 more in Cell A1 to show a number higher than 78% in cell A4. Cell A5 would contain the IF ELSE statement. How do I write this in Excel? I hope I have not confused anyone. Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Assistance Require with IF, ELSE statement

    A5: =IF(A4>=.78,"You're Fine",You Need 'x' to get to 78%")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Assistance Require with IF, ELSE statement

    Thanks for the reply, however I need the part where it says "You need X (X being some number) to get to 78%" to do a calculation that if A4 is not 78% or higher, that it needs to calculate how many more I need to reach 78%.

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

    Re: Assistance Require with IF, ELSE statement

    May be:
    =IF(A4>=0.78,"You 're fine","You Need "&INT((SUM(A2:A3)*0.78+A3)/0.22)&" to get to 78%")
    Quang PT

  5. #5
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Assistance Require with IF, ELSE statement

    Thanks Bebo. Is that formula dynamic? Let's say I change the content of Cell A1 to 2. Then you need 6 more to reach to 78% or higher. I guess, can Excel do dynamic formulas?

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

    Re: Assistance Require with IF, ELSE statement

    A1 is a reference so the result in A4 and A5 can be changed according to A1 changing. Try and see.

  7. #7
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Assistance Require with IF, ELSE statement

    I think I am messing something up. Lol. Ok, this is how I have it.

    \1

    So Cell J4 has the formula. Sorry, I got confused. I'm doing this Horizontally.

    And this is what I have as the formula: =IF(H4>=0.78,"You 're fine","You Need "&INT((SUM(A4:C4)*0.78+H4)/0.22)&" to get to 78%")

    One more thing. H4 has this formula: =(A4-C4)/D4*100
    Last edited by Soulj4h; 03-27-2013 at 09:23 PM.

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

    Re: Assistance Require with IF, ELSE statement

    So this case so diferent with #1.
    Let see: we have the balance:
    (A4-C4)/D4*100=0.78
    (A4-C4)=D4*0.78/100
    A4=C4+D4*0.78/100
    So the statement should be:
    Please Login or Register  to view this content.
    if roundup to 0.0:
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Assistance Require with IF, ELSE statement

    Thanks. You almost got it. I think. What I'm going after is a 'GOALSEEK' formula. First, D4 is the sum of A4+B4+C4. Therefore, if A4-C4/D4*100 is less than 78%, I want to know what what value plus the value all ready in A4 will get me to 78%, which is what is shown in the cell H4. H4 is A4-C4/D4*100.

  10. #10
    Registered User
    Join Date
    03-27-2013
    Location
    Gurgaon, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Assistance Require with IF, ELSE statement

    And I'm sorry about all the confusion. I'm working in excel after a very long time.

+ 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