+ Reply to Thread
Results 1 to 4 of 4

Not getting the correct cell from another sheet to return

  1. #1
    Registered User
    Join Date
    02-22-2014
    Location
    Montpelier, VT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Not getting the correct cell from another sheet to return

    So I have a workbook I am creating to do scheduling at work. The first sheet is the spreadsheet I use to create the schedule and post for my employees, the second is a google friendly formate that now autofills as I create the first sheet, which I then save in csv formate and upload to google calendar for my employees. The third is a daily task worksheet, which has the hours of each employee working that day. I'm trying to get it to automatically pull the time from the first sheet based on the current date and place it in the third.

    The formula I have so far is as follows:

    =IF(AND(A1>='Store Schedule'!B2, A1<='Store Schedule'!H2),VLOOKUP(TIME(0,0,0),'Store Schedule'!B:H,7,""))

    A1 it =TODAY()
    'Store Schedule'!B2:H2 is where the dates are in the first sheet
    Under the VLOOKUP, number 7 is the row where the time in is

    Am I even in the right ballpark so far??? Thanks

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Not getting the correct cell from another sheet to return

    You know your lookup value evaluates to 0?

    Are you wanting to find an exact match of 0? If so, maybe this...

    =IF(AND(A1>='Store Schedule'!B2, A1<='Store Schedule'!H2),VLOOKUP(0,'Store Schedule'!B:H,7,0),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-22-2014
    Location
    Montpelier, VT
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Not getting the correct cell from another sheet to return

    No I didn't, I'm pretty new at this. I did try what you suggested but it returned an #ERROR!. What would you suggest instead? I want it to display the actual time from another cell associated the the date in the same column.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Not getting the correct cell from another sheet to return

    Can you post a SMALL sample file so we can see what you're trying to do?

    SMALL = about 20 rows worth of data.

+ 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. Replies: 6
    Last Post: 10-09-2013, 03:08 PM
  2. [SOLVED] How to search for identical cell in columns and return the correct value
    By caooi23 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-15-2013, 11:33 AM
  3. Replies: 12
    Last Post: 03-29-2013, 03:02 PM
  4. [SOLVED] Compare each cell and return the correct value
    By jackyong1985 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2012, 10:00 AM
  5. Replies: 5
    Last Post: 09-22-2011, 07:28 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