Referance colum in formula by number instead of letter

rpaulson

Well-known Member
Joined
Oct 4, 2007
Messages
1,415
current
=COUNTIF(F:F,">1")

need
=COUNTIF(6,">1")

thanks for looking

Ross
 
Last edited:

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.
Hi, you could try:

=COUNTIF(INDEX($A:$ZZ,0,6),">1")
 
Upvote 0
Here is one way...

=COUNTIF(OFFSET(A1,0,6-1,1000),">1")

Note that we are offsetting 5 columns from column A, so we have to subtract 1 from your 6 in order for you to put 6 into the formula (which I assume will ultimately come from a cell reference).

EDIT NOTE: I like FormR's solution better than this one (his formula is non-volatile whereas mine isn't).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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