Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default modifying this formula to return an empty cell

the formula is
=IF(OR(A1="company1",A1="company2"),B1+3,IF(OR(A1= "company3",A1="company4"),B1+5,B1+30))

the B column of my spreadsheet contains dates. the problem is, if there is
no date in the B column, this formula returns 1/5/1900. what could i add at
the end of this formula so that it leaves the cell blank if there is no date
in column B. thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default modifying this formula to return an empty cell

IF(ISBLANK(B1),"",[then your formula])

Dave
--
Brevity is the soul of wit.


"Outbacker" wrote:

the formula is
=IF(OR(A1="company1",A1="company2"),B1+3,IF(OR(A1= "company3",A1="company4"),B1+5,B1+30))

the B column of my spreadsheet contains dates. the problem is, if there is
no date in the B column, this formula returns 1/5/1900. what could i add at
the end of this formula so that it leaves the cell blank if there is no date
in column B. thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Nav Nav is offline
external usenet poster
 
Posts: 43
Default modifying this formula to return an empty cell

Try:

=IF(OR(A1="company1",A1="company2"),B1+3,IF(OR(A1= "company3",A1="company4"),B1+5,IF(B1="","",B1+30)) )

All this does is test a1, if these fail then looks at b1, if there is no
vlaue then it is blank too, otherwise it adds the 30 onto it.

Hope it works.



"Outbacker" wrote:

the formula is
=IF(OR(A1="company1",A1="company2"),B1+3,IF(OR(A1= "company3",A1="company4"),B1+5,B1+30))

the B column of my spreadsheet contains dates. the problem is, if there is
no date in the B column, this formula returns 1/5/1900. what could i add at
the end of this formula so that it leaves the cell blank if there is no date
in column B. thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default modifying this formula to return an empty cell

Hi Dav-
Your original formula this morning worked great. On this one, you referenced
A1. That is the company name column that the earlier formula addressed. The
issue is that the B column (date that the 3,5 and 30 is added to) sometimes
is blank. If so, the formula returns 1/5/1900. If theres no date in the B
column, I was hoping for the formula to leave the results column blank.
Thats the column thats showing the B1+3,5 and 30 results from your formula.
Is there a way to add this final criteria to your original formula? Thanks
again.

"Outbacker" wrote:

the formula is
=IF(OR(A1="company1",A1="company2"),B1+3,IF(OR(A1= "company3",A1="company4"),B1+5,B1+30))

the B column of my spreadsheet contains dates. the problem is, if there is
no date in the B column, this formula returns 1/5/1900. what could i add at
the end of this formula so that it leaves the cell blank if there is no date
in column B. thanks in advance.

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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Return an empty cell Mike D. Excel Discussion (Misc queries) 2 January 3rd 06 06:27 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


All times are GMT +1. The time now is 06:56 PM.

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

About Us

"It's about Microsoft Excel"