+ Reply to Thread
Results 1 to 6 of 6

How to use OFFSET when the reference is a formula linked to another tab?

  1. #1
    Registered User
    Join Date
    10-30-2015
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    How to use OFFSET when the reference is a formula linked to another tab?

    Hi All,

    I have a formula that works perfectly...
    =MIN(IF('Main Log'!$D$4:$D$2000=$B4,IF('Main Log'!$O$4:$O$2000,"",'Main Log'!$E$4:$E$2000)))

    What this does is checks my 'Main log' to look for the instances where:
    - Appointment type matches what I've specified in B4 (in Column D)
    -The subsequent report has no completion date (in Column O)
    This cell now shows me the start date of this (from Column E) for the oldest case of this type with no completion date.

    Let's say I have this in J4 of my monitoring sheet. Now I want to show the name of this oldest case in J5, which can be found in Column G on my 'Main Log' (2 cells to the right of my start date).

    I need a formula for J5 that finds the information 2 cells to the right of what J4 has found.

    I tried a basic =OFFSET(J4,0,2) but this just uses the J4 cell as a starting point, rather than starting at the 'Main Log' location that J4's formula is returning.

    Please help someone!

    Thanks in advance, Steve

    Cross-posted at: https://www.mrexcel.com/board/thread...query.1213960/
    Last edited by Glenn Kennedy; 08-18-2022 at 10:10 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,697

    Re: How to use OFFSET when the reference is a formula linked to another tab?

    So now you have to retreive data from column G with 3 conditions met :
    in given row
    'Main Log'!$D$4:$D$2000= $B4
    'Main Log'!$O$4:$O$2000 = ""
    'Main Log'!$E$4:$E$2000 = just found minimum

    so it shall be something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Hope it helps, if not - see the yellow box about sample attachment above
    Best Regards,

    Kaper

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,602

    Re: How to use OFFSET when the reference is a formula linked to another tab?

    Welcome (back) to the forum.

    Thanks for your question. However, we have just found out that you have posted the same question elsewhere.... and haven't told us. Feel free to cross-post on other sites...

    But. Every forum has its rules. Please see Forum Rule #3 about cross-posting. So.

    Do not keep it a secret. We all are willing to give you our time, freely. However, some of us get very annoyed if we waste our time developing a solution for you, when you already have a nice solution elsewhere. All we ask is that you show us some respect and tell us:

    1) if you have cross-posted, and

    2) the URL of the cross posts.

    That way, those of us who don't want to waste their time can quickly check to see if you're already happy with another solution.

    (Note: since you are new here, on THIS occasion, I have done it for you.)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    10-30-2015
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: How to use OFFSET when the reference is a formula linked to another tab?

    NEW REPORT LOG.xlsx

    Hi,

    Firstly, my sincere apologies for not realising about the cross-linking rule.

    I've now attached my draft spreadsheet. If you look at the Current Status tab, in columns L, M, N and O, I want to pull the appropriate data from the row in Main Log that J4 has identified at the longest waiter. Should make more sense by looking at it rather than going by my amateurish descriptions.

    Again, thank you for your help.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,697

    Re: How to use OFFSET when the reference is a formula linked to another tab?

    So the answer above is almost correct. I only misunderstood where NHS contract column is located.
    The version to be used in sample file (change semicolons to commas as needed or see the attachment
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-30-2015
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    3

    Re: How to use OFFSET when the reference is a formula linked to another tab?

    That's it! Perfect. Thank you.

+ 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. [SOLVED] problem with offset :(
    By xlyreb01 in forum Excel General
    Replies: 10
    Last Post: 12-11-2015, 03:42 PM
  2. Problem with Offset
    By Fredma in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2014, 12:20 PM
  3. Problem with Offset
    By Fredma in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 08:23 AM
  4. Problem with Offset vba
    By Mamud in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-30-2013, 09:12 PM
  5. IF/OFFSET Problem
    By penfold in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2009, 07:56 AM
  6. Offset Problem!
    By watzmann in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-09-2009, 08:14 AM
  7. Offset problem
    By Robbyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2005, 02: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