Referance colum in formula by number instead of letter

rpaulson

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

need
=COUNTIF(6,">1")

thanks for looking

Ross
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,216,089
Messages
6,128,750
Members
449,466
Latest member
Peter Juhnke

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