Indirect Formula help

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
793
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am having some difficulty putting an indirect formula to use that I feel should be easy to do. I have in column A my list, and I need to countif a column on the sheet respective to the list. Each sheet is the first character in column A. For example sheet G in my example. The one below is is A6579001, so the formula would need to reference sheet "A." I am attempting to make it dynamic but having trouble. even if I drag my column C down "A3" stays stagnant. So I cannot even succeed breaking this into parts. Any help would be nice I tried looking here Indirect and that kicked me off.

COUNTIFS(G!$D$2:$D$2217,A3,G!$Q$2#,">1")LEFT(INDIRECT("A3"),1)&"!"
ListFormulaIndirect + Left Formula
G12345678
0​
G!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Why do you need INDIRECT there? The way you are using it, is the same as LEFT(A3,1).

Perhaps your intent was something like this:
Book1
AB
1G12345678999
Sheet1
Cell Formulas
RangeFormula
B1B1=INDIRECT(LEFT(A1,1)&"!A5")


Book1
A
1
2
3
4
599
G
 
Last edited:
Upvote 0
My intend is for column B to have the formula that I can drag down to dynamically update based off of column A left(XXX,1). I was only using a helper column to try to get that darn indirect to function (that was column C). Like in your example how would you incorporate that COUNTIFs in there?

COUNTIFS(G!$D$2:$D$2217,A3,G!$Q$2#,">1")
 
Upvote 0
Like this:
Book1
ABC
1G123456789993
Sheet1
Cell Formulas
RangeFormula
B1B1=INDIRECT(LEFT(A1,1)&"!A5")
C1C1=COUNTIFS(INDIRECT(LEFT(A1,1)&"!A1:A10"),99)


Book1
A
155
265
375
485
599
699
799
8105
9115
10125
G
 
Upvote 0
Something like this perhaps:
Excel Formula:
=COUNTIFS(INDIRECT(LEFT(A3,1)&"!$D$2:$D$2217",A3,INDIRECT(LEFT(A3,1)&"!$Q$2#",">1")
 
Upvote 0
Excel Formula:
=COUNTIFS(INDIRECT(LEFT(A3,1)&"!$D$2:$D$2217",A3,INDIRECT(LEFT(A3,1)&"!$Q$2#",">1")
hmm did that work for you its kicking an error for me?

1709842582866.png
 
Upvote 0
Opps, my apologies:

Excel Formula:
=COUNTIFS(INDIRECT(LEFT(A3,1)&"!$D$2:$D$2217"),A3,INDIRECT(LEFT(A3,1)&"!$Q$2#"),">1")
 
Upvote 0
Solution
Thanks I am going to mark this as answered but will need to makea new post seeing I need to set the range based off the last row of that respective sheet
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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