View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stefi Stefi is offline
external usenet poster
 
Posts: 2,646
Default Count no of nights between dates

=COUNTIF(B:B,"x")
I supposed that you meant COLUMN A for dates and COLUMN B for x's.

Regards,
Stefi

€˛Morten€¯ ezt Ć*rta:

I am trying to count no of nights for example stayed in a hotel,

For example
You put in the dates in row 1
Fill then row 2 with "x" if stayed at hotel

Need then another cell to calculate the number of nights that has been
stayed at the hotel (the cells filled with "x").

Can anyone help?

In advance thanks for your help