Help with calulating Null fields

R

Roderic

Tried this formula, but it doesn't work...

=IF(B2="", [A2], [B2])

I THOUGHT the formula above basically was saying, "if B2 is null then put
the A2 data in this field".

Trying to calulate dates for tasks...
Column A has the due date
Column B has the actual completion date
Column C should have the formula
Column D should have the results of column C minus column A

The idea is to show what tasks are late. For calculation purposes though
(and ease of use for the end user) if there is no "Actual Completion Date" in
the spreadsheet - in other words, if the task is still in progress, then I
just want the number to return as zero.
 
R

Roderic

Thanks, John! That helped! I was following the format suggested in the
pop-ups in MS Office 2007.

John C said:
why do you have brackets?
=IF(B2="",A2,B2)
--
John C


Roderic said:
Tried this formula, but it doesn't work...

=IF(B2="", [A2], [B2])

I THOUGHT the formula above basically was saying, "if B2 is null then put
the A2 data in this field".

Trying to calulate dates for tasks...
Column A has the due date
Column B has the actual completion date
Column C should have the formula
Column D should have the results of column C minus column A

The idea is to show what tasks are late. For calculation purposes though
(and ease of use for the end user) if there is no "Actual Completion Date" in
the spreadsheet - in other words, if the task is still in progress, then I
just want the number to return as zero.
 
J

John C

I don't have xl2007, I can only imagine that they have the brackets around
those two items to indicate what the cell display will be (i.e.: value of A2
or value of B2). Perhaps someone else with xl2007 could answer that.

Thanks for the feedback.
--
John C


Roderic said:
Thanks, John! That helped! I was following the format suggested in the
pop-ups in MS Office 2007.

John C said:
why do you have brackets?
=IF(B2="",A2,B2)
--
John C


Roderic said:
Tried this formula, but it doesn't work...

=IF(B2="", [A2], [B2])

I THOUGHT the formula above basically was saying, "if B2 is null then put
the A2 data in this field".

Trying to calulate dates for tasks...
Column A has the due date
Column B has the actual completion date
Column C should have the formula
Column D should have the results of column C minus column A

The idea is to show what tasks are late. For calculation purposes though
(and ease of use for the end user) if there is no "Actual Completion Date" in
the spreadsheet - in other words, if the task is still in progress, then I
just want the number to return as zero.
 

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