PC Review


Reply
Thread Tools Rate Thread

Build 'show 0 as -' into existing formula

 
 
CW
Guest
Posts: n/a
 
      29th Apr 2010
Hi All,

I have a working formula as follows:
=SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))

This returns the number of projects active in the 'Modelling' phase. The
results table is large and to make it more readable I would like to show '0'
as '-'.

Would it be possible to show how I could build this is or is there an
alternative option.

Thanks
Carol
 
Reply With Quote
 
 
 
 
ozgrid.com
Guest
Posts: n/a
 
      29th Apr 2010
Custom format the cell as: General;-General;"-"
http://www.ozgrid.com/Excel/CustomFormats.htm


--
Regards
Dave Hawley
www.ozgrid.com


"CW" <(E-Mail Removed)> wrote in message
news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
> Hi All,
>
> I have a working formula as follows:
> =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
>
> This returns the number of projects active in the 'Modelling' phase. The
> results table is large and to make it more readable I would like to show
> '0'
> as '-'.
>
> Would it be possible to show how I could build this is or is there an
> alternative option.
>
> Thanks
> Carol


 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      29th Apr 2010
Excel 2003

1. Format->Cells->Custom and define an own format like this: # ##0;-#
##0;-
(mind the separator might be , instead of ; as I'm using a national
version of Excel)

2. to make the worksheet more readable you may also hide zeros Tool-
>Options->View and uncheck Zero Values


HIH


On 29 Kwi, 10:18, CW <C...@discussions.microsoft.com> wrote:
> Hi All,
>
> I have a working formula as follows:
> =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
>
> This returns the number of projects active in the 'Modelling' phase. *The
> results table is large and to make it more readable I would like to show '0'
> as '-'.
>
> Would it be possible to show how I could build this is or is there an
> alternative option.
>
> Thanks
> Carol


 
Reply With Quote
 
CW
Guest
Posts: n/a
 
      29th Apr 2010
Thanks Dave, that's great. I never knew you could do that, very simple.
Thank you!

"ozgrid.com" wrote:

> Custom format the cell as: General;-General;"-"
> http://www.ozgrid.com/Excel/CustomFormats.htm
>
>
> --
> Regards
> Dave Hawley
> www.ozgrid.com
>
>
> "CW" <(E-Mail Removed)> wrote in message
> news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
> > Hi All,
> >
> > I have a working formula as follows:
> > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
> >
> > This returns the number of projects active in the 'Modelling' phase. The
> > results table is large and to make it more readable I would like to show
> > '0'
> > as '-'.
> >
> > Would it be possible to show how I could build this is or is there an
> > alternative option.
> >
> > Thanks
> > Carol

>

 
Reply With Quote
 
CW
Guest
Posts: n/a
 
      29th Apr 2010
Hi Dave

Is it also possible for this to work with dates? So for example I have a
column that picks up a date from another sheet e.g. '=Data1!D43'. The data
should be shown as a date however if field in the other sheet is blank the
value defaults to '0-Jan'.

Could a similar solution work for this?

Thanks
Carol

"ozgrid.com" wrote:

> Custom format the cell as: General;-General;"-"
> http://www.ozgrid.com/Excel/CustomFormats.htm
>
>
> --
> Regards
> Dave Hawley
> www.ozgrid.com
>
>
> "CW" <(E-Mail Removed)> wrote in message
> news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
> > Hi All,
> >
> > I have a working formula as follows:
> > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
> >
> > This returns the number of projects active in the 'Modelling' phase. The
> > results table is large and to make it more readable I would like to show
> > '0'
> > as '-'.
> >
> > Would it be possible to show how I could build this is or is there an
> > alternative option.
> >
> > Thanks
> > Carol

>

 
Reply With Quote
 
ozgrid.com
Guest
Posts: n/a
 
      29th Apr 2010
Use: General;-General; and the 0 date will not show.


--
Regards
Dave Hawley
www.ozgrid.com
"CW" <(E-Mail Removed)> wrote in message
news:1FC04841-17BE-4B60-90CD-(E-Mail Removed)...
> Hi Dave
>
> Is it also possible for this to work with dates? So for example I have a
> column that picks up a date from another sheet e.g. '=Data1!D43'. The
> data
> should be shown as a date however if field in the other sheet is blank the
> value defaults to '0-Jan'.
>
> Could a similar solution work for this?
>
> Thanks
> Carol
>
> "ozgrid.com" wrote:
>
>> Custom format the cell as: General;-General;"-"
>> http://www.ozgrid.com/Excel/CustomFormats.htm
>>
>>
>> --
>> Regards
>> Dave Hawley
>> www.ozgrid.com
>>
>>
>> "CW" <(E-Mail Removed)> wrote in message
>> news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
>> > Hi All,
>> >
>> > I have a working formula as follows:
>> > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
>> > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
>> >
>> > This returns the number of projects active in the 'Modelling' phase.
>> > The
>> > results table is large and to make it more readable I would like to
>> > show
>> > '0'
>> > as '-'.
>> >
>> > Would it be possible to show how I could build this is or is there an
>> > alternative option.
>> >
>> > Thanks
>> > Carol

>>


 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      29th Apr 2010
Use the custom format to design a format in which you want to display the
date as below...

dd-mmm-yyyy;;"-"
OR
dd-mmm-yyyy;;


--
Jacob (MVP - Excel)


"CW" wrote:

> Hi Dave
>
> Is it also possible for this to work with dates? So for example I have a
> column that picks up a date from another sheet e.g. '=Data1!D43'. The data
> should be shown as a date however if field in the other sheet is blank the
> value defaults to '0-Jan'.
>
> Could a similar solution work for this?
>
> Thanks
> Carol
>
> "ozgrid.com" wrote:
>
> > Custom format the cell as: General;-General;"-"
> > http://www.ozgrid.com/Excel/CustomFormats.htm
> >
> >
> > --
> > Regards
> > Dave Hawley
> > www.ozgrid.com
> >
> >
> > "CW" <(E-Mail Removed)> wrote in message
> > news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
> > > Hi All,
> > >
> > > I have a working formula as follows:
> > > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> > > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
> > >
> > > This returns the number of projects active in the 'Modelling' phase. The
> > > results table is large and to make it more readable I would like to show
> > > '0'
> > > as '-'.
> > >
> > > Would it be possible to show how I could build this is or is there an
> > > alternative option.
> > >
> > > Thanks
> > > Carol

> >

 
Reply With Quote
 
ozgrid.com
Guest
Posts: n/a
 
      29th Apr 2010
To hide all zeros, there's an option not to display them under Excel
Options.



--
Regards
Dave Hawley
www.ozgrid.com
"ozgrid.com" <(E-Mail Removed)> wrote in message
news:54D1B50B-C5E2-4F6D-8114-(E-Mail Removed)...
> Use: General;-General; and the 0 date will not show.
>
>
> --
> Regards
> Dave Hawley
> www.ozgrid.com
> "CW" <(E-Mail Removed)> wrote in message
> news:1FC04841-17BE-4B60-90CD-(E-Mail Removed)...
>> Hi Dave
>>
>> Is it also possible for this to work with dates? So for example I have a
>> column that picks up a date from another sheet e.g. '=Data1!D43'. The
>> data
>> should be shown as a date however if field in the other sheet is blank
>> the
>> value defaults to '0-Jan'.
>>
>> Could a similar solution work for this?
>>
>> Thanks
>> Carol
>>
>> "ozgrid.com" wrote:
>>
>>> Custom format the cell as: General;-General;"-"
>>> http://www.ozgrid.com/Excel/CustomFormats.htm
>>>
>>>
>>> --
>>> Regards
>>> Dave Hawley
>>> www.ozgrid.com
>>>
>>>
>>> "CW" <(E-Mail Removed)> wrote in message
>>> news:62B5E705-0FD4-4884-8FC0-(E-Mail Removed)...
>>> > Hi All,
>>> >
>>> > I have a working formula as follows:
>>> > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
>>> > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
>>> >
>>> > This returns the number of projects active in the 'Modelling' phase.
>>> > The
>>> > results table is large and to make it more readable I would like to
>>> > show
>>> > '0'
>>> > as '-'.
>>> >
>>> > Would it be possible to show how I could build this is or is there an
>>> > alternative option.
>>> >
>>> > Thanks
>>> > Carol
>>>

>


 
Reply With Quote
 
CW
Guest
Posts: n/a
 
      29th Apr 2010
Thanks Jarek, unchecking zero values does the job for what I need.

"Jarek Kujawa" wrote:

> Excel 2003
>
> 1. Format->Cells->Custom and define an own format like this: # ##0;-#
> ##0;-
> (mind the separator might be , instead of ; as I'm using a national
> version of Excel)
>
> 2. to make the worksheet more readable you may also hide zeros Tool-
> >Options->View and uncheck Zero Values

>
> HIH
>
>
> On 29 Kwi, 10:18, CW <C...@discussions.microsoft.com> wrote:
> > Hi All,
> >
> > I have a working formula as follows:
> > =SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
> > Data'!D452<=TODAY())*('Timelines Data'!E4:E52>=TODAY()))
> >
> > This returns the number of projects active in the 'Modelling' phase. The
> > results table is large and to make it more readable I would like to show '0'
> > as '-'.
> >
> > Would it be possible to show how I could build this is or is there an
> > alternative option.
> >
> > Thanks
> > Carol

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
formula to show + or - before the result of an existing formula Jamie Microsoft Excel Misc 4 17th Apr 2009 07:06 AM
Build report from existing Excel Spreadsheet MackBlale Microsoft Access Reports 0 5th Jan 2009 07:27 PM
New PC OS build - How to apply changes to existing roaming profiles? Noozer Windows XP Setup 1 6th Nov 2006 04:04 PM
Re: When I link a powerpoint show to another show, the existing show . David M. Marcovitz Microsoft Powerpoint 0 13th Apr 2005 08:32 PM
Is it possible to seperate a tree from an existing forest and build up a new one ? Oliver Manz Microsoft Windows 2000 Active Directory 1 21st Apr 2004 09:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:26 PM.