excel.advanced.course - excel

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel.advanced.course - Excel

excel.advanced.course - Excel

resolvedResolved · Low Priority · Version Standard

Jan has attended:
Excel Advanced course

Excel

doing a conditional if then on whether a value is positive or negative

RE: Excel

Hi Jan

Thank you for your question.

I think you should be able to do this by setting your logical test to be X>0 (where X is the cell containing the number you are getting Excel to evaluate), then putting in what happens if X is >0 (i.e. positive) and what happens if X <0 (i.e. negative).

I hope this helps.
Amanda

RE: Excel

Many thanks
That works beautifully


 

Excel tip:

Calculate difference between two times

For presenting the result in the standard time format (hours : minutes : seconds . Use the subtraction operator (-) to find the difference between times, and the TEXT function to format the returned value to text in a specific number format.

Hours never exceed 24, minutes never exceed 60, and seconds never exceed 60.

=TEXT(B2-A2,"h")
Hours between two times (4)

=TEXT(B2-A2,"h:mm")
Hours and minutes between two times (4:55)

=TEXT(B2-A2,"h:mm:ss")
Hours and seconds between two times (4:55:00)

Where B2 and A2 must hold the end time and start time respectively formatted as a time format

View all Excel hints and tips


Server loaded in 0.12 secs.