using numbers from cells in formula

SQUIDD

Well-known Member
Joined
Jan 2, 2009
Messages
2,104
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
=counta(index(a:a, z1):index(a:a, z2))
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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