#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trying To Excel
 
Posts: n/a
Default Basic If

I am trying to write the if function for the following
If the sum of A1:E1=0 then "-" if not then sum of A1:E1


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Basic If

Here's the formula you asked for:

=IF(SUM(A1:E1)=0,"-",SUM(A1:E1))

But, try this first....
FormatCellsNumber Tab
Category: Accounting

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Trying To Excel" wrote:

I am trying to write the if function for the following
If the sum of A1:E1=0 then "-" if not then sum of A1:E1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Basic If

Another approach would be

=SUM(A1:E1)

and custom format General;-General;"-"

--
Regards,

Peo Sjoblom

(No private emails please)


"Ron Coderre" wrote in message
...
Here's the formula you asked for:

=IF(SUM(A1:E1)=0,"-",SUM(A1:E1))

But, try this first....
FormatCellsNumber Tab
Category: Accounting

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Trying To Excel" wrote:

I am trying to write the if function for the following
If the sum of A1:E1=0 then "-" if not then sum of A1:E1



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trying To Excel
 
Posts: n/a
Default Basic If

Thanks Ron, It worked just fine

"Ron Coderre" wrote:

Here's the formula you asked for:

=IF(SUM(A1:E1)=0,"-",SUM(A1:E1))

But, try this first....
FormatCellsNumber Tab
Category: Accounting

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Trying To Excel" wrote:

I am trying to write the if function for the following
If the sum of A1:E1=0 then "-" if not then sum of A1:E1


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Trying To Excel
 
Posts: n/a
Default Basic If

Thanks

"Peo Sjoblom" wrote:

Another approach would be

=SUM(A1:E1)

and custom format General;-General;"-"

--
Regards,

Peo Sjoblom

(No private emails please)


"Ron Coderre" wrote in message
...
Here's the formula you asked for:

=IF(SUM(A1:E1)=0,"-",SUM(A1:E1))

But, try this first....
FormatCellsNumber Tab
Category: Accounting

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Trying To Excel" wrote:

I am trying to write the if function for the following
If the sum of A1:E1=0 then "-" if not then sum of A1:E1




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
Linking to Visual Basic for Applications Help Files Glynn Excel Discussion (Misc queries) 0 October 8th 05 01:29 AM
Visual Basic and SP2 JessJ Excel Discussion (Misc queries) 2 October 6th 05 12:17 PM
Microsoft lessons should be listed from basic to advanced Sherlock New Users to Excel 1 September 30th 05 06:01 PM
Macro Calling Visual Basic References phauenstein Excel Discussion (Misc queries) 1 August 24th 05 09:28 PM
Visual Basic Code Remains in "memory" Paul Moles Excel Worksheet Functions 1 December 10th 04 10:29 PM


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