+ Reply to Thread
Results 1 to 5 of 5

Return value for Else in If formula

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Return value for Else in If formula

    Hi..I am working on a sheet which has a column with the usual RAG status but now I need to introduce a new status of "NA" and replace a sizeable number of records (c. 6k+) with this new status based on a pre-defined value from another column. I was wondering if there was a quicker way of doing this using the "If" formula but could not figure out what should I put in the else section because the remaining records should continue to reflect the current status of R, A or G.

    I am using excel 2010

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Return value for Else in If formula

    How are R/A/G assigned currently?

    If they're filled in by a formula you just need to update the formula; if they're manually entered or otherwise imported fields, you're going to have to either use a macro to replace them with N/A or pump them into a helper column.

  3. #3
    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,939

    Re: Return value for Else in If formula

    Hi and welcome to the forum

    No idea what RAG means, but it would probably help if you uploaded a sample of what you have and what you want
    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

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Return value for Else in If formula

    Quote Originally Posted by FDibbins View Post
    No idea what RAG means
    Red/Amber/Green

    Three-color-code traffic light for "Bad"/"Warning"/"Good"



    ...I assume. It could be something else...?

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Return value for Else in If formula

    given the minimal info, here is a minimal info answer.
    =IF(A2<5,"R",IF(A2<10,"A",IF(A2<20,"G","NA"))) and the #s I used are obviously arbitrary. But maybe this can be a basis for what you want?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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: 3
    Last Post: 01-28-2014, 03:10 PM
  2. [SOLVED] Formula to always return cell below what a vlookup would return
    By KCHEXCEL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2013, 12:57 AM
  3. [SOLVED] IF statement to return 0 if 0 in cell if not return formula
    By CraigieL in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-15-2013, 09:46 AM
  4. Formula that will return a formula that is based on the value in a cell.
    By vlambert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2013, 02:13 PM
  5. Replies: 2
    Last Post: 04-23-2012, 05:01 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