Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8325155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:20:18+00:00 2026-06-09T00:20:18+00:00

I have an array in one file, for example: Names Age Shoe Size Andrew

  • 0

I have an array in one file, for example:

    Names    Age   Shoe Size
    Andrew   19    12
    Mary     17     8
    Sarah    15    10
    Wesley   19    11

I want to pinpoint one piece of data based on a given name and data type.
For example, pinpoint Sarah and Age, I want the cell to read 15.

I have read this helpful guide on Double Lookups, but one thing is still bothering me.

Here is the formula:

=OFFSET(A1:C5,MATCH("Sarah",OFFSET(A1:C5,0,0,ROWS(A1:C5),1),0)-1,MATCH("Age",OFFSET(A1:C5,0,0,1,COLUMNS(A1:C5)),0)-1)

It works when the data is in the same file, however when I try and use the given formula from another file, it gets a #VALUE! error.

Code for reading from anther file (all I did was add the file path):

=OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5,MATCH("Sarah",OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5,0,0,ROWS(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5),1),0)-1,MATCH("Age",OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5,0,0,1,COLUMNS(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5)),0)-1)

Here it is spaced so it is easier to read:

=OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5,
MATCH("Sarah", OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5, 0, 0,
ROWS(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5),1), 0)-1,
MATCH("Age", OFFSET(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5, 0, 0, 1, 
COLUMNS(C:file\path\'[Lister.xls]Shhet1'!$A$1:$C$5)), 0)-1)

Does anyone know why it doesn’t like other files?
It’s the same information.

How do I fix this?

Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:20:20+00:00Added an answer on June 9, 2026 at 12:20 am

    Just to expand on Scott’s answer, external paths to closed workbooks are treated like arrays not references so functions that are expecting references in arguments like OFFSET, SUMIF, or COUNTIF return errors if the workbook is closed.

    INDEX on the other hand does allow arrays as arguments, so you could try entering instead:

    =INDEX(A1:C5,MATCH("Sarah",INDEX(A1:C5,0,1),0),MATCH("Age",INDEX(A1:C5,1,0),0))
    

    which should allow for references to closed workbooks as well.

    A further advantage of INDEX is that it is not volatile so will only recalculate when a cell in one of the dependent cells (A1:C5) changes whereas OFFSET is a volatile function and will recalculate whenever a change is made anywhere in the workbook which is less efficient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one php file which process adding of record in Database fro array.
I have a one-time need to create a file from an iOS mutable array.
I have one array. I want that array to retain its value between function
I want to implement singleten design pattern in iphone code I have one array.
I have one file with a list of names. I need to loop through
I have one array that is filled by mysql_query. Values that are in this
Problem: I have two array where one produce a category and the second produce
lets say i have one array a = numpy.arange(8*6*3).reshape((8, 6, 3)) #and another: l
I have an array like this one $state[1]='FG'; $state[2]='BU'; $state[3]='CA'; ... $state[150]='YT' What I
I have a multi dimensional array in PHP. $f = array('one' => array(*doesntmatter*), two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.