| 
 | 
I want to know, if I don't know the certain range, what should I do based on the value entered by the user? 
-------------------------------------------------- ---- 
Without VBA, you can specify operations for specific rows. 
Change the method provided bywzqiiiiiito 
= COUNTIF (1: 1, "A") 
Just fine. 
 
By the way, in Excel 2003, each sheet can only have a maximum of 256 columns (the column name is IV) or 65536 rows, so it can be written like this 
= COUNTIF (A1: IV1, "A") 
I just tried it by the way, = COUNTIF (A1: IV1, "A") will be automatically converted to = COUNTIF (1: 1, "A") |   
 
 
 
 |