Referance colum in formula by number instead of letter

rpaulson

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

need
=COUNTIF(6,">1")

thanks for looking

Ross
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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