Results 1 to 7 of 7

Trouble with nested IF formula

Threaded View

  1. #1
    Registered User
    Join Date
    11-08-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Trouble with nested IF formula

    Hi All

    I'm in the middle of creating an audit spreadsheet that automatically populates a reference number when you select the month and person's name that you want to audit. The formula references an external worksheet to keep the source information and the "front end" section users will look at apart.

    I have separated the months out into sheets within the source workbook, and have managed to get an IF formula to work so when you select one of the months it works, however I can't get it to work for the other months in the same formula if that makes any sense.

    My formula so far is:

    =IFERROR(IF(C6="December 2018",VLOOKUP(C4&"Service1",[Audits_2018.xlsx]December!$A2:$G200,5,0)),"")

    C6 is where you would select the month, C4 is where you would select the person's name, and "Service1" is one of several services the person works on - I'm going to do each one separately.

    I am hoping to get the formula to look something like this, where it returns the correct reference number depending on the month/name selected however it isn't working and just returns FALSE with every month except December:

    =IFERROR(IF(C6="December 2018",VLOOKUP(C4&"Service1",[Audits_2018.xlsx]December!$A2:$G200,5,0)),IF(C6="November 2018",VLOOKUP(C4&"Service1",[Audits_2018.xlsx]November!$A2:$G200,5,0)),IF(C6="September 2018",VLOOKUP(C4&"Service1",[Audits_2018.xlsx]September!$A2:$G200,5,0))"")) etc.

    I'm not very experienced with Excel and I'm at a bit of a loss as to how to get it to work! I've tried taking out and adding parentheses and commas etc. but nothing works, saying I've either got too many or too few arguments in the function.

    Any ideas would be greatly appreciated!
    Last edited by 1993e; 11-08-2018 at 06:58 PM. Reason: marked as solved

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trouble with nested index match formula
    By jamesplant77 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2016, 10:44 AM
  2. [SOLVED] Trouble with Nested If
    By shaught7 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-25-2014, 02:26 PM
  3. [SOLVED] I’m having trouble getting my nested IF formula to work.
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-05-2013, 05:46 PM
  4. [SOLVED] Trouble with nested IF-COUNTIF Formula
    By Ford Sakata in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 01:45 PM
  5. Trouble with Nested IF Function
    By gvishnu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2013, 05:18 PM
  6. Having trouble with nested if commands
    By pmilligan1979 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2012, 02:12 PM
  7. Trouble with nested IF formula
    By TheRobsterUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2005, 10: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