Variable Text Reference Range

Rubber Beaked Woodpecker

Board Regular
Joined
Aug 30, 2015
Messages
210
Office Version
  1. 2021
Hi

In cell U6 I have the following formula;

=IF(AND(BC6<>""),IFERROR((COUNTIF(INDIRECT("'5.2'!$A2:AAA2"),"=1")),"0"),"")

Would it be possible so that the text reference range would be dependable on what is entered in cell Z1.

For example Z1 = $B2:BBB2

Then the formula in U6 would become;

=IF(AND(BC6<>""),IFERROR((COUNTIF(INDIRECT("'5.2'!$B2:BBB2"),"=1")),"0"),"")

Many thanks,

RBW
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,226,100
Messages
6,188,912
Members
453,510
Latest member
Tastech

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