+ Reply to Thread
Results 1 to 8 of 8

Formula returning value?

  1. #1
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Formula returning value?

    Hi

    I have a formula in column H that returns a word based on a value, its all working fine but as you will see in the attached it is returning "red" even if the cells to the left are empty

    Any ideas?
    Last edited by jamesa2487; 05-20-2017 at 03:56 PM.

  2. #2
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Formula returning value?

    Use this:

    =IF(G2="","",IF(G2>1,"Red",IF(F2>0.9,"Green",IF(F2>0.79,"Amber","Red"))))
    If myself or others have helped, please add to our reputation by pressing the 'Star' icon below this.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Formula returning value?

    That is what the formula indicates. If it does not meet the criteria, it is red.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Change the last "Red" to something else.
    Also there may be something in G2, I pressed delete in G2 and the formula worked properly.

  4. #4
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Formula returning value?

    Hi

    In the main it works only problem now is if it is red with
    Last edited by jamesa2487; 05-20-2017 at 03:57 PM.

  5. #5
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Formula returning value?

    This:

    =IF(AND(G2="",F2=""),IF(G2>1,"Red",IF(F2>0.9,"Green",IF(F2>0.79,"Amber","Red"))),"Red")

  6. #6
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Formula returning value?

    That is now returning "red" when there is no result, i will try to explain better

    Coloum F & G - Have a vlookup formula in

    What i need H to do
    Last edited by jamesa2487; 05-20-2017 at 03:57 PM.

  7. #7
    Registered User
    Join Date
    11-20-2011
    Location
    ireland
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Formula returning value?

    its fine now, the formula you gave seems to work with the vlookup, its just if i type a manual score over the top it doesnt

  8. #8
    Forum Contributor
    Join Date
    10-28-2015
    Location
    Lincolnshire, England
    MS-Off Ver
    2016
    Posts
    188

    Re: Formula returning value?

    Try this:

    =IF(F2="","",IF(G2>1,"Red",IF(F2>0.9,"Green",IF(F2>0.79,"Amber","Red"))))

    Make sure you press F9 to re-calculate (or even better, turn back on "Automatic Calculations"

    Thanks

+ 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. [SOLVED] Excel Formula returning True Value for False Formula
    By bvercher in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2015, 09:10 AM
  2. Lookup a formula & calulate as formula instead of returning text
    By eclair21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-14-2014, 04:33 PM
  3. [SOLVED] Formula returning a false value when origin cell contains a formula
    By ensmith in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-04-2013, 01:42 PM
  4. [SOLVED] Stumped with Formula Array returning cell adjacent to formula dataset
    By Giles_Silver in forum Excel General
    Replies: 5
    Last Post: 06-04-2012, 12:18 AM
  5. help with formula returning #value!
    By garywilson4 in forum Excel General
    Replies: 4
    Last Post: 02-08-2012, 02:49 PM
  6. Formula sometimes returning correct answer and sometimes returning 0
    By redimp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2010, 06:28 AM
  7. Sum Formula Returning 0.00
    By RogueIT in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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