Assignment 16
Date Function
Cyber Cafe
Function Used
IF :- IF function can perform a logical test and return one value for a true result and another for a false result it use to manuplate return the value "TRUE" and "FALSE".
NOW :- this function return the current date and time, updated continuously when a worksheet is change or opened.
HOUR :- this function return the hour component of a number 0-23 for example with a time of 9:30 am hours will return 9.
MINUTE :- The minute function extract the minute component of a time as a number between 0-59 for example with a time of 9:45 am, minute will be return 45.
Function for Status
=IF(E2>NOW(),"In use","Free")
This function use for print computer status like in use or free.
Function for Duration
=E2-D2
E2 is cell address of out time and D2 is cell address of in time.
Function for Amount
=Hour(G2)*50+IF(MINUTE(G2)<=20,15,IF(MINUTE(G2)<=40,25,50))
Print amount of computer according to used time.
0 Comments
Thank You So much for your comment please wait for approval