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

Use Countif which takes a range and criteria
e.g.
=COUNTF(B2:K2,"x")

"Morten" wrote:

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

 
ExcelBanter Database Error
Database Error Database error
The ExcelBanter database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.excelbanter.com home page, then try to open another page.
  • Click the Back button to try another link.
The www.excelbanter.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.