INDIRECT function from another sheet

bukimi

Board Regular
Joined
Apr 12, 2017
Messages
105
Office Version
  1. 2019
Platform
  1. Windows
Hello!

I almost managed to make a formula I needed, but it shows values from current sheet instead of sheet I'm interested in.
=INDIRECT(ADDRESS(MATCH("Summary";Values!$A:$A;0);MATCH("2018-12-02";Values!4:4;0)))

It successfully finds row number, which has "Summary" as header and column with specified date as a header. Then it shows value of found row+column cell address, but from current sheet, when I need it to take cell value from "Values" sheet, too.
=Values!INDIRECT(---rest of formula---) is obviously wrong.
 
Last edited by a moderator:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi bukimi,

You can modify your ADDRESS formula to include a certain sheet name, e.g.:
=INDIRECT(ADDRESS(MATCH("Summary";Values!$A:$A;0);MATCH("2018-12-02";Values!4:4;0);;;"Values"))

Alternatively, you can use INDEX formula to achieve the same result:
=INDEX(Values!1:1048576;MATCH("Summary";Values!$A:$A;0);MATCH("2018-12-02";Values!4:4;0))

Hope it helps.
 
Upvote 0
That works! Thank you!
I didn't use INDIRECT function too much, so I didn't know I can add Sheet name so far in arguments list.

Still, how does this part work?
=INDEX(Values!1:1048576
It adds all cells of a Sheet as input?
 
Upvote 0
Glad it worked! :)

Correct - the first part of INDEX formula is your whole Array (you can "shrink" it to just a few rows & columns, depending where your data set is), then the next two arguments specify ROW and COLUMN numbers. The formula will return the cell value at the intersection of Row and Column.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top