PC Review


Reply
Thread Tools Rate Thread

Concact strings

 
 
clara
Guest
Posts: n/a
 
      18th Jun 2008
Hi all,

I have a formula sum(b2, 20) showing the total hours, now I want to go a
step further, I want to suffix "Hour(s)" which depends on the values.

Clara
--
thank you so much for your help
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      18th Jun 2008
=SUM(B2,20) & "Hour(s)"
--
Gary''s Student - gsnu200793
 
Reply With Quote
 
KePaHa
Guest
Posts: n/a
 
      18th Jun 2008
Or =SUM(G2:G20) & IF(SUM(G2:G20)<=1, " Hour", " Hours")

"Gary''s Student" wrote:

> =SUM(B2,20) & "Hour(s)"
> --
> Gary''s Student - gsnu200793

 
Reply With Quote
 
clara
Guest
Posts: n/a
 
      18th Jun 2008
HI KePaHa

Thank you for your help!

Clara
--
thank you so much for your help


"KePaHa" wrote:

> Or =SUM(G2:G20) & IF(SUM(G2:G20)<=1, " Hour", " Hours")
>
> "Gary''s Student" wrote:
>
> > =SUM(B2,20) & "Hour(s)"
> > --
> > Gary''s Student - gsnu200793

 
Reply With Quote
 
clara
Guest
Posts: n/a
 
      18th Jun 2008
Hi KePaHa,

If the result of sum is 0( zero ), how to make the cell empty instead of
displaying 0


Clara
--
thank you so much for your help


"KePaHa" wrote:

> Or =SUM(G2:G20) & IF(SUM(G2:G20)<=1, " Hour", " Hours")
>
> "Gary''s Student" wrote:
>
> > =SUM(B2,20) & "Hour(s)"
> > --
> > Gary''s Student - gsnu200793

 
Reply With Quote
 
KePaHa
Guest
Posts: n/a
 
      18th Jun 2008
Something like this =IF(SUM(XX:XX)=0, "", OLD FORMULA HERE).
So, if the sum =0, then do nothing, otherwise, do the original formula.

"clara" wrote:

> Hi KePaHa,
>
> If the result of sum is 0( zero ), how to make the cell empty instead of
> displaying 0
>
>
> Clara
> --
> thank you so much for your help
>
>
> "KePaHa" wrote:
>
> > Or =SUM(G2:G20) & IF(SUM(G2:G20)<=1, " Hour", " Hours")
> >
> > "Gary''s Student" wrote:
> >
> > > =SUM(B2,20) & "Hour(s)"
> > > --
> > > Gary''s Student - gsnu200793

 
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
Is it simply that c# converts all strings coming in to double and strings going out to single? AAaron123 Microsoft C# .NET 3 23rd Feb 2009 01:08 PM
String concact problem David C Microsoft ASP .NET 1 9th May 2008 11:44 PM
link birthdays in a concact to the calender =?Utf-8?B?YmpvZmFs?= Microsoft Outlook Calendar 1 10th Sep 2005 01:28 PM
Can Business Concact Manager be accessed via Outlook Web Access? =?Utf-8?B?cGVzc29h?= Microsoft Outlook BCM 1 10th Aug 2005 08:16 PM
Make Word displays strings of text, not strings of code =?Utf-8?B?WGVybw==?= Microsoft Word Document Management 2 9th Dec 2004 10:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.