+ Reply to Thread
Results 1 to 5 of 5

Nesting If formulas

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Marin County, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Nesting If formulas

    I would like to write an If statement in the attachment. I would like cell B3 to look at cell A3 and based upon which amount it is closest to in column E, provide the average listed in column D. For example, since A1, 14.63% can is closest to 15%, the amount in cell B3 would be 2.5% or D5.
    Thanks for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Nesting If formulas

    I would use logic so that you can use the vlookup. Swap columns D and E then put the the following formula in Cell B3

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Nesting If formulas

    =INDEX($D$3:$D$8,MATCH(MROUND(A3,0.05),$E$3:$E$8,1))
    Or maybe this formula works
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Registered User
    Join Date
    05-31-2013
    Location
    Marin County, CA
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Nesting If formulas

    The Vlookup formula almost works. It is selecting the percentage in column E below the the one it should select. For example, B3 should be 2.5% as 14.63% would round up to 15%. Is there a way to fix that?

  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,938

    Re: Nesting If formulas

    Changethe TRUE to FALSE TRUE is for a sorted list, FALSE is for an exact match
    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

+ 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. Nesting IF formulas
    By babydee0413 in forum Excel General
    Replies: 4
    Last Post: 02-19-2010, 06:03 PM
  2. Nesting of Formulas
    By mttlltt75 in forum Excel General
    Replies: 1
    Last Post: 06-05-2009, 11:12 AM
  3. Nesting if formulas
    By Estimator 142 in forum Excel General
    Replies: 2
    Last Post: 01-27-2009, 04:29 AM
  4. Nesting formulas
    By msbing916 in forum Excel General
    Replies: 2
    Last Post: 07-30-2007, 11:13 AM
  5. Nesting Formulas
    By PLCProgrammer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-03-2005, 07:06 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