+ Reply to Thread
Results 1 to 3 of 3

#NAME? Error, cant figure out why.

  1. #1
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    #NAME? Error, cant figure out why.

    =IFERROR(IF(WEEKDAY(SelectecmISD)=VLOOKUP(VLOOKUP(B12,'XD Routing'!B:L,11,FALSE),buffer!$A$19:$B$25,2,FALSE),"X",""),"E")

    This is the formula in question. Let me break it down a little...

    First section (between the two ='s) SelectecmISD is a named range (with a typo...) for the Selected IS date. It references a cell that containes a date value. I want to extract the Weekday value of this range (1-7) and compare it against:

    VLOOKUP(VLOOKUP(B12,'XD Routing'!B:L,11,FALSE),buffer!$A$19:$B$25,2,FALSE),"X",""),"E")

    B:L on 'XD Routing' contains a table, in which a value matching B12 is listed somewhere. Column L contains a day typed in the General format as "FRIDAY", "MONDAY" etc, which is associated with the value in B12

    The second lookup is comparing what day was found to another small table on the 'buffer' sheet, which is a simple 7 row 2 columns with the days and the Weekday associated with them (1,2,3,4,5,6,7)

    End result is I want to compare the day associated with the value in B12 with a day located in the named range SelectecMISD, returning an X if they are the same (1=1, 2=2, 3=3 and so on) or nothing if not true. So far all I get is an E.

    I have broken the formula in half and tested that way, seemed to work...not sure why it doesn't work within one cell.

    Well that got confusing. Unfortunately I cannot upload this particular file...

    Thanks for looking!
    Last edited by Speshul; 02-08-2013 at 01:02 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: #NAME? Error, cant figure out why.

    Hah. Nevermind. Turns out my typo SelectecmISD was a typo on the formula not on the named range. There is a typo on another range called SelectecLISD, I got them mixed.

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: #NAME? Error, cant figure out why.

    Forum is acting up.. grrr

    - Moo
    Last edited by Moo the Dog; 02-08-2013 at 01:08 PM. Reason: Darn forum acting up again

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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