Indirect

The Grim Discovery

Board Regular
Joined
Jan 23, 2015
Messages
246
Office Version
  1. 365
Platform
  1. Windows
Excellers
I've been doing some formulating with the indirect function for pretty much the first time. It's good.

But I'm stumped as to how I can get Cell A10 in Sheet 1 to say 'Yes' if there is text populating cell A10 in any one or more of Sheet2:Sheet10


and for cell A10 in Sheet 1 to say 'No' if there is no text populating the exact same range. It seems like the kind of thing that can be done, only I can't do it.

Please help. You know you want to.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Re: INDIRECT help

Was thinking 3D Reference but cant seem to get it to work.
Maybe (regrettably)

=IF(ISTEXT(Sheet2!A10)+ISTEXT(Sheet3!A10)ISTEXT(Sheet4!A10)ISTEXT(Sheet5!A10)ISTEXT(Sheet6!A10)ISTEXT(Sheet7!A10)ISTEXT(Sheet8!A10)ISTEXT(Sheet9!A10)ISTEXT(Sheet10!A10),"Yes","No")
 
Upvote 0
Re: INDIRECT help

Thanks chap. It's doing what I need to do so nothing regrettable about that.
Just wondering - pushing it I know - if instead of producing 'yes' or 'no' the formula could report which sheet(s) contained the text. So if Sheet3!A10 contained text the output would be 'Sheet 3'.
 
Upvote 0
Re: INDIRECT help

Identifying Sheet number just requires nested IFs

IF(ISTEXT(Sheet number!A10),value if true,IF(ISTEXT(Next sheet number!A10)...

So beginning

=IF(ISTEXT(Sheet2!A10),"Sheet2",IF(ISTEXT(Sheet3!A10),"Sheet3",ISTEXT(Sheet4!A10),"Sheet4"...

for each sheet you want to check until

...IF(ISTEXT(Sheet10!A10),"Sheet10","No text in any sheet"))))))))) <== 1 closing bracket for each IF condition
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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