Results 1 to 4 of 4

Help needed with Indirect() and code to reference another worksheet

Threaded View

MyNameIsNovice Help needed with Indirect()... 11-21-2014, 04:31 PM
tim201110 Re: Help needed with... 11-21-2014, 05:02 PM
MyNameIsNovice Re: Help needed with... 11-21-2014, 05:06 PM
FDibbins Re: Help needed with... 11-21-2014, 05:10 PM
  1. #1
    Registered User
    Join Date
    11-21-2014
    Location
    Louisville, KY
    MS-Off Ver
    2010
    Posts
    2

    Help needed with Indirect() and code to reference another worksheet

    I believe I am having difficulty with the Indirect() function and getting Excel to return what I wish. The idea is to be checking to see if all pieces of data for each client has come in for the month. If there is at least one piece that hasn't come in I want to know it, if all have come in I want to know that. Countblank will accommodate this. The formatting of this needs to remain basically the same, meaning the lookup table, the worksheet names, the vlookups to return row positions. What certainly can change is the code I am using via Indirect() if there is a better method.

    I am attempting to replicate the following which I know works correctly

    IF(COUNTBLANK('Data Loads'!G3:'Data Loads'!G4)>0, "blanks","non blanks")
    This code is going to be on the worksheet many times, referencing many different columns and rows so I am trying to use a combination of INDIRECT and some Vlookups to return the correct information. I can write most of it via Indirect correctly, at least I think so.

    =IF(COUNTBLANK(INDIRECT(("'"&C3&"'!"&B3&VLOOKUP(A3,Clients_Table,3,FALSE))&":"&INDIRECT(("'"&C3&"'!"&B3&(VLOOKUP(A3,Clients_Table,3,FALSE)+1)))))>0,"blanks","non blanks")
    However this currently returns #REF. I think that my issue is with the
    &":"&
    part of the code, and for the life of me I can't figure out how to get that to work. I could also be using incorrect parenthesis. The formula correctly looks like this if I F9 pieces of it:

    =IF(COUNTBLANK(INDIRECT("'Data Loads'!G3"&":"&INDIRECT"'Data Loads'!G4"))>0,"blanks","non blanks")
    It looks like it is correctly evaluating the two snippets. Any ideas how I can get this to return the correct code referenced above.

    Thanks so much!
    Attached Files Attached Files
    Last edited by MyNameIsNovice; 11-21-2014 at 05:07 PM. Reason: Solved

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Reference MATCH() or INDIRECT() from another worksheet?
    By criticalityevent in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 05:18 PM
  2. VBA Code: Assistance on Indirect reference
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2012, 09:50 PM
  3. INDIRECT function to reference worksheet
    By mckaymmc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-30-2011, 11:37 PM
  4. Indirect reference to changing worksheet name
    By Peanuts890 in forum Excel General
    Replies: 2
    Last Post: 05-21-2010, 09:52 AM
  5. SUM and INDIRECT to reference worksheet
    By Potatosalad2 in forum Excel General
    Replies: 2
    Last Post: 02-28-2006, 10:15 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