+ Reply to Thread
Results 1 to 9 of 9

Help with simple nested IF formulas

  1. #1
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Help with simple nested IF formulas

    Hi,

    I need help creating a formula, which:

    Checks Column 1 to see if it's "Grade" or "Percentage", then checks Column 2 for "low", "med", "high".

    If Column 1 is "Grade", then it should print the corresponding LowGrade, MedGrade, or HighGrade (identified in separate table).
    If Column 1 is "Percentage", then it should print corresponding LowPer, MedPer, or HighPer (identified in separate table).

    Could you guys help with this simple formula? It would be highly appreciated!

    Let me know if I need to clarify, thanks,

    John

  2. #2
    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,967

    Re: Help with simple nested IF formulas

    Hi, welcome to the forum

    Without seeing a sample of what you are working with, this is untested.

    Could you change your answers to xxxGRAD and xxxPERC? That will make it a LOT simpler to just grab teh 1st 4 letters, instead of all letters for GRADE, but only the 1st 3 letters of PERCENT. BAsed on a "yes" answer here...

    In the cell where you want the answer to be...
    =B2&leftA2,4)
    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

  3. #3
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Re: Help with simple nested IF formulas

    Hi, thanks for responding.

    I should specify that LowGrade, MedGrade, HighGrade and LowPer, MedPer, HighPer, aren't texts. They are named cells with numeric values.

    My first table to scan is:


    Column 1 Column 2
    Grade Low
    Grade Medium
    Percentage Low

    Then based on if it's Grade/Percentage, it will check column two for low/med/high and input the figure from the below table:


    Grade Percentage
    L 1 0.5
    M 4 2
    H 8 4

    Sorry if my explanation is a bit muddled :/

  4. #4
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Re: Help with simple nested IF formulas

    If anyone could help I would really appreciate it

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with simple nested IF formulas

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Re: Help with simple nested IF formulas

    I've attached a sample of the problem I'm trying to solve.

    Data in Column 1 and Column 2 are pre-populated, as in the data in A3:C6.

    I'm trying to come up with a formula to calculate the data in Column 3 (G4:G9)

    Example.xlsx

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Help with simple nested IF formulas

    g4
    =INDEX($B$4:$C$6,MATCH(F4,$A$4:$A$6,0),MATCH(E4&"*",$B$3:$C$3,0))
    then conditional format g4:g9
    as formula
    =$E4="percentage"
    and choose percentage from the number format option
    not e4&"*" is used as "grade" <>"grades"
    Attached Files Attached Files
    Last edited by martindwilson; 11-15-2014 at 03:45 PM.

  8. #8
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Re: Help with simple nested IF formulas

    Amazing! Thank you so much. I kept trying to use IF, but it seems INDEX was the wiser choice. Thank again,

    John

  9. #9
    Registered User
    Join Date
    11-14-2014
    Location
    Toronto
    MS-Off Ver
    1991
    Posts
    6

    Re: Help with simple nested IF formulas

    [Post deleted]

+ 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] simple search function using nested IF and Vlookup statements
    By cherryt in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-27-2013, 08:45 AM
  2. [SOLVED] Simple nested IF statement not working correctly
    By bassemsaad in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-04-2013, 08:53 AM
  3. Error message in a simple nested formula
    By cfsosa in forum Excel General
    Replies: 2
    Last Post: 08-08-2008, 01:47 PM
  4. Simple nested IF statement?
    By bartsimpson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-04-2007, 10:10 AM
  5. if nested formulas
    By marleneardon in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 07:30 AM

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