View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Variable reference in countif

Another one:

=COUNTIF(E6:INDEX(E:E,A1),"apples")

If A1 is empty the entire range, E:E, will be calculated.


--
Biff
Microsoft Excel MVP


"Libby" wrote in message
...
Hi there,

A1 contains a formula which gives a number, eg 127
How do I think incorporate this into a countif, eg
=countif( E6:E value in A1,"apples")

Many thanks.