using numbers from cells in formula

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
1,667
HI

Ok, so lets say i use
=COUNTA('MY SELECTIONS'!A1:A100)-1
no problem

but lets say the 1 was in cell z1 and the 100 was in cell z2.

can it be done and if so how, im goint to kick myself its easy.

thanks for looking

Dave
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,714
Office Version
2010
Platform
Windows
=counta(index(a:a, z1):index(a:a, z2))
 

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
1,667
oh ok, thanks shg.

thankyou very much.

it was not the answer I was expectiong but it certianly does work.

i also have this formula, could the same be applied to countifs?

=COUNTIFS('MY SELECTIONS'!F:F,1)

thanks again

dave
 

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
1,667
ok shg

think i sussed out how it all works now thanks

=COUNTIFS(INDEX('MY SELECTIONS'!F:F, H27):INDEX('MY SELECTIONS'!A:A, H28),1)

cheers

great job

dave
 

shg

MrExcel MVP
Joined
May 7, 2008
Messages
21,714
Office Version
2010
Platform
Windows
You're welcome.
 

Forum statistics

Threads
1,081,728
Messages
5,360,923
Members
400,602
Latest member
newaqua

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top