Cell reference within INDIRECT formula

cpg84

Active Member
Joined
Jul 16, 2007
Messages
266
Platform
  1. Windows
Hi,

I have the following formula that works perfectly:

=IF(SUMPRODUCT(COUNTIF(INDIRECT("'"&A20:A54&"'!H14"),">0"))=0,0,SUMPRODUCT(COUNTIF(INDIRECT("'"&A20:A54&"'!H14"),">0"))-(35-COUNTA(F20:F54)))

I just want to know how to change the H14 so it can be changed to a cell reference. I want to type in a number in a separate cell so the "H14" will change depending on what is in that cell e.g. If the cell says 13, the formula below will change to "H13".

COUNTIF(INDIRECT("'"&A20:A54&"'!H14"),">0")

Is this possible?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
=if(sumproduct(countif(indirect("'"&a20:a54&"'!h"&h14),">0"))=0,0,sumproduct(countif(indirect("'"&a20:a54&"'!h"&h14),">0"))-(35-counta(f20:f54)))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
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