if & and functions

D

Dominique Feteau

how could i word this:

i want an if statement that'll look at a cell (lets say D2) and say "if D2
is less than 10am, enter 'Before 10am' in F2, if D@ is greater than 10am but
greater than 3pm, enter 'Between 10am & 3pm' in F2 and if D2 is greater than
3pm, enter 'After 3pm' in F2.

thanx in advance.
dominique
 
B

Bob Phillips

Hi Dominique,

=IF(D2<TIME(10,0,0),"Before
10am",IF(AND(D2>=TIME(10,0,0),D2<TIME(15,0,0)),"Between 10am & 3pm","After
3pm"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top