#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Concact strings

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Concact strings

=SUM(B2,20) & "Hour(s)"
--
Gary''s Student - gsnu200793
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Concact strings

Or =SUM(G2:G20) & IF(SUM(G2:G20)<=1, " Hour", " Hours")

"Gary''s Student" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Concact strings

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Concact strings

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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Concact strings

=IF(SUM(...)=0,"",your_formula)
--
David Biddulph

"clara" wrote in message
...
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



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Concact strings

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
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
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
last name, first name strings data_diva New Users to Excel 6 November 18th 05 10:39 PM
Compare the strings yangyh Excel Discussion (Misc queries) 3 September 8th 05 04:45 AM
Search for strings David494 New Users to Excel 6 August 1st 05 01:05 PM
How can I count strings within strings Paul W Excel Worksheet Functions 4 June 14th 05 12:39 PM


All times are GMT +1. The time now is 09:14 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"