Build 'show 0 as -' into existing formula

C

CW

Hi All,

I have a working formula as follows:
=SUMPRODUCT(('Timelines Data'!B4:B52="Modelling")*('Timelines
Data'!D4:D52<=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
 
J

Jarek Kujawa

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
 
C

CW

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
 
J

Jacob Skaria

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;;
 

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