+ Reply to Thread
Results 1 to 7 of 7

Using If function

  1. #1
    Registered User
    Join Date
    12-10-2013
    Location
    groblersdal
    MS-Off Ver
    Excel 2010
    Posts
    14

    Using If function

    Hi. I have three columns A1,A2&A3. I want A3 to display "Achieved", "Not achieved" or " ". A3 must reflect "Achieved" if cell A1 is greater than A2. "Not achieved" if less and "blank" if column A1 is blank. Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Using If function

    Try This (nested If Statement)

    =IF(OR(A1="",A2=""),"",IF(A1>A2,"Achieved",IF(A1<A2,"Not Achieved","")))

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Using If function

    What happens if A1 = A2?
    (Formula below returns "not achieved" with that scenario)

    IF(A1="","",IF(A2="","",IF(A1>A2,"Achieved",Not Achieved")))
    Edit
    Should be:
    IF(A1="","",IF(A1>A2,"Achieved",Not Achieved"))
    Last edited by kev_; 07-15-2017 at 05:11 AM. Reason: Misread question...
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    05-04-2017
    Location
    MALAYSIA
    MS-Off Ver
    2007
    Posts
    34

    Re: Using If function

    TRY EITHER ONE

    IF(A1="","",IF(A1>A2,"Achieved","Not Achieved"))

    OR USE

    IFERROR(IF(A1="","",IF(A1>A2,"Achieved","Not Achieved")),"Not Achieved")

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: Using If function

    Quote Originally Posted by malesela View Post
    Hi. I have three columns A1,A2&A3.
    actually, thats three rows, not columns Rows go down, columns go agross

    I want A3 to display "Achieved", "Not achieved" or " ". A3 must reflect "Achieved" if cell A1 is greater than A2. "Not achieved" if less and "blank" if column A1 is blank. Thanks in advance.
    =if(A3="","",if(A1>A2,Achieved","Not Achieved"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    12-10-2013
    Location
    groblersdal
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Using If function

    Thanks Kev. Your formula assisted me a lot. This is how I edited it"=IF(OR(A8="",B8=""),"",IF(B8>=A8,"Achieved",IF(B8<A8,"Not Achieved","")))" and its given me the results I want.

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Using If function

    @Syrkrasi
    Your post most closely resembles the solution

    How about marking the thread as solved @malesala ? (Thread tools @ top of thread)
    Last edited by kev_; 07-15-2017 at 03:30 PM.

+ 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. Replies: 2
    Last Post: 04-23-2017, 12:04 AM
  2. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  3. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  4. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  5. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  6. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  7. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

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