+ Reply to Thread
Results 1 to 7 of 7

Find value from another workbook, row based on text, column based on date

  1. #1
    Registered User
    Join Date
    12-30-2021
    Location
    Warsaw, Poland
    MS-Off Ver
    2016
    Posts
    7

    Thumbs up Find value from another workbook, row based on text, column based on date

    Hi all,

    I'm looking for an Excel Online formula that would be able to return a value from a specific tab (Schedule) from another workbook (Sourcebook.xlsx) that is uploaded to a OneDrive folder ("sharepoint,com/Shared Documents/", had to replace . with , due to post limits) on a cross of two specific values - selecting row based on finding specific text (Search_text) in one column and then selecting column based on current date.

    I tried INDIRECT but it works only sometimes, even if I open the source workbook first.
    This is how the indirect I used looks:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Multiple other solutions I tried return an error "Request was taking too long" when trying to parse them. I tried:
    • XLOOKUP (instead of VLOOKUP, as below)
    • FILTER + CHOOSECOLS
    • OFFSET + MATCH

    The other solution that I kind of got to work is with VLOOKUP, however, it only finds the first row with the specified text and I need the last one (which is third time that text appears on the list).
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I would be grateful if someone could help me with this by either providing an alternative solution (in form of a formula) or a way to effectively shift the result from VLOOKUP variant by a given number of rows/to a row with specific additional parameter ("resource type" in the example sourcebook).

    In the attached Sourcebook.xlsx I have marked in yellow the values that are of interest to me, the value I'm looking for is the one in AD64 cell (cross of the "Search_text" and today's date).
    Attached Files Attached Files
    Last edited by Mikaill; 12-29-2022 at 11:03 AM. Reason: Solution provided

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

    Re: Find value from another workbook, row based on text, column based on date

    Your dates were not dates. They just looked like dates.

    I formatted them as Dec rather than 12 to prove they're real dates.

    Then:

    =INDEX([Sourcebook.xlsx]Schedule!$C$2:$AG$76,MATCH(1,([Sourcebook.xlsx]Schedule!$A$2:$A$76="Search_Text")*([Sourcebook.xlsx]Schedule!$B$2:$B$76=3),0),MATCH(TODAY(),[Sourcebook.xlsx]Schedule!$C$1:$AG$1,0))
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-30-2021
    Location
    Warsaw, Poland
    MS-Off Ver
    2016
    Posts
    7

    Re: Find value from another workbook, row based on text, column based on date

    The dates were just pasted from the sourcebook, I didn't check if formatting was maintained, thanks for noticing.

    Unfortunately the solution you proposed also returns the "Request was taking too long" error in Excel Online, probably because the actual sourcebook has over 3000 rows and columns spreading till ACI.

    I will maybe try to do it with desktop version of the file instead on a later, thank you very much for your input anyway, Glenn.

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

    Re: Find value from another workbook, row based on text, column based on date

    This might be a bit better...

    =INDEX(INDEX([Sourcebook.xlsx]Schedule!$C$2:$AG$76,,MATCH(TODAY(),[Sourcebook.xlsx]Schedule!$C$1:$AG$1,0)),MATCH(1,([Sourcebook.xlsx]Schedule!$A$2:$A$76="Search_Text")*([Sourcebook.xlsx]Schedule!$B$2:$B$76=3),0))

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

    Re: Find value from another workbook, row based on text, column based on date

    Hang on! I made a mistake. In your excel version previous offerings will be array formulae. Try this:

    =INDEX(INDEX([Sourcebook.xlsx]Schedule!$C$2:$AG$76,,MATCH(TODAY(),[Sourcebook.xlsx]Schedule!$C$1:$AG$1,0)),MATCH(1,INDEX(([Sourcebook.xlsx]Schedule!$A$2:$A$76="Search_Text")*([Sourcebook.xlsx]Schedule!$B$2:$B$76=3),0),0))

    which should be OK with just ENTER.

  6. #6
    Registered User
    Join Date
    12-30-2021
    Location
    Warsaw, Poland
    MS-Off Ver
    2016
    Posts
    7

    Re: Find value from another workbook, row based on text, column based on date

    The latter seem to do the trick, thank you a lot!

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

    Re: Find value from another workbook, row based on text, column based on date

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] Find and replace string in middle of column based upon text in another column
    By Dbezel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-17-2022, 04:01 AM
  2. [SOLVED] Formula to find the value from on column based on same name and date
    By purlo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2020, 03:33 PM
  3. Find a value in column based on date
    By jsalotra in forum Excel General
    Replies: 6
    Last Post: 05-29-2017, 04:02 PM
  4. VBA to find/fill column based on date
    By superdrno in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2016, 12:28 PM
  5. [SOLVED] Find last value in one column based on values in another (text only)
    By slash_gnr3k in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2012, 11:37 AM
  6. Saving workbook based on date/text input
    By Mark K in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2006, 04:33 AM
  7. Find column number based on text
    By pikapika13 in forum Excel General
    Replies: 1
    Last Post: 05-09-2005, 05:37 PM

Tags for this Thread

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