Understand Indirect + Cell function combination

Camel123

Board Regular
Joined
Jun 5, 2018
Messages
186
Hi,

I watched a tutorial and tweaked my formula to make drop down lists in all cells searchable, rather than just 1x searchable drop list in cell F5 on the Forecast sheet. I changed the formula from,

=IF(ISNUMBER(SEARCH('Forecast'!$F$5;'Master data'!C2));MAX($D$1:D1)+1;0)

to

=IF(ISNUMBER(SEARCH(INDIRECT(CELL("address"));'Master data'!C2));MAX($D$1:D1)+1;0)

I am trying to understand what the INDIRECT and CELL function does here and I tried reading the internet but I am apparently not smart enough to understand it. Can anyone give an easy explanation to this?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
CELL("address")
returns the address of the last changed cell as text - e.g. "C3".

INDIRECT takes the address of a cell (or multiple cells) and returns an actual reference to that cell. So INDIRECT(CELL("address")) always returns a reference to the last changed cell.
 
Upvote 0
More clear, thank you mate. Now when I understand it I referred the indirect+cell combination to one column. Though, there is a problem. Let's say if I pick "McDonalds" from the drop-list in cell C3, then the drop-list in cell C4 only display's "McDonalds" since the dynamic range refers to the last changed cell. But since C4 is blank I would like it to show the whole range/list of values. How do I make it work this way? At the moment after picking McDonalds in the previous cell, I need to write "star" to generate values containing "starbucks", "star's café" etc. But it is not always that I know which value I am searching for.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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