Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with calulating Null fields

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Help with calulating Null fields

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


"Roderic" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with calulating Null fields

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

"John C" wrote:

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


"Roderic" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Help with calulating Null fields

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" wrote:

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

"John C" wrote:

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


"Roderic" wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calulating week # & Day # bj[_2_] Excel Worksheet Functions 2 May 4th 07 02:48 PM
Calulating hours, minutes and seconds Linda Le Geyt Excel Worksheet Functions 5 November 9th 06 01:49 PM
Conditional Linking and Formatting across worksheets to form Summary Page - Only pull/link non-null fields J Leckner Excel Worksheet Functions 1 September 22nd 06 04:18 PM
reducing Calulating time harpscardiff Excel Discussion (Misc queries) 1 March 14th 06 12:26 PM
Calulating Age Formula YUMBUG Excel Worksheet Functions 3 August 26th 05 01:25 AM


All times are GMT +1. The time now is 08:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"