Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
thomson
 
Posts: n/a
Default Default numeric value

I am creating a spreadsheet dealing with dollars. There are several formulas
that I have created using percentages. One particular formula multiplies a
percent in one cell by the $ value in another. If I have no $ value in the
cell the formula uses a '1' instead of what I would expect '0'. How can I
set up my sheet so that if a cell is blank the default value will be '0'?
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default Default numeric value

Would help to see your formula, but:
=if(isblank(a1),"",a1*b1)
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"thomson" wrote in message
...
I am creating a spreadsheet dealing with dollars. There are several
formulas
that I have created using percentages. One particular formula multiplies
a
percent in one cell by the $ value in another. If I have no $ value in
the
cell the formula uses a '1' instead of what I would expect '0'. How can I
set up my sheet so that if a cell is blank the default value will be '0'?



  #3   Report Post  
thomson
 
Posts: n/a
Default Default numeric value

This works great thanks! Here is what the formula ended up being ....
=SUM(IF(ISBLANK(D9),0,D$1*D9),IF(ISBLANK(E9),0,E$1 *E9),IF(ISBLANK(F9),0,F$1*F9),IF(ISBLANK(G9),0,G$1 *G9),IF(ISBLANK(H9),0,H$1*H9))

I still have the question on why a 'blank' would end up being evaluated as a
'1' when you find a product. When the formula is a 'SUM' the blank is
considered a '0' ... so why is it different if it it s product? Maybe
someone from Microsoft can tell me??





"Anne Troy" wrote:

Would help to see your formula, but:
=if(isblank(a1),"",a1*b1)
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"thomson" wrote in message
...
I am creating a spreadsheet dealing with dollars. There are several
formulas
that I have created using percentages. One particular formula multiplies
a
percent in one cell by the $ value in another. If I have no $ value in
the
cell the formula uses a '1' instead of what I would expect '0'. How can I
set up my sheet so that if a cell is blank the default value will be '0'?




  #4   Report Post  
Jason Clement
 
Posts: n/a
Default Default numeric value

You can use an array formula to make it shorter. Enter:

=SUM(IF(ISBLANK(D9:H9),0,D$1:H$1*D9:H9))

To make it an array formula, press ctrl+shift+enter to enter the formula as
opposed to pressing enter alone.


"thomson" wrote:

This works great thanks! Here is what the formula ended up being ....
=SUM(IF(ISBLANK(D9),0,D$1*D9),IF(ISBLANK(E9),0,E$1 *E9),IF(ISBLANK(F9),0,F$1*F9),IF(ISBLANK(G9),0,G$1 *G9),IF(ISBLANK(H9),0,H$1*H9))

I still have the question on why a 'blank' would end up being evaluated as a
'1' when you find a product. When the formula is a 'SUM' the blank is
considered a '0' ... so why is it different if it it s product? Maybe
someone from Microsoft can tell me??





"Anne Troy" wrote:

Would help to see your formula, but:
=if(isblank(a1),"",a1*b1)
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"thomson" wrote in message
...
I am creating a spreadsheet dealing with dollars. There are several
formulas
that I have created using percentages. One particular formula multiplies
a
percent in one cell by the $ value in another. If I have no $ value in
the
cell the formula uses a '1' instead of what I would expect '0'. How can I
set up my sheet so that if a cell is blank the default value will be '0'?




  #5   Report Post  
thomson
 
Posts: n/a
Default Default numeric value

I tried this and it works well. I am new to using Excel ... very powerful.

"Jason Clement" wrote:

You can use an array formula to make it shorter. Enter:

=SUM(IF(ISBLANK(D9:H9),0,D$1:H$1*D9:H9))

To make it an array formula, press ctrl+shift+enter to enter the formula as
opposed to pressing enter alone.


"thomson" wrote:

This works great thanks! Here is what the formula ended up being ....
=SUM(IF(ISBLANK(D9),0,D$1*D9),IF(ISBLANK(E9),0,E$1 *E9),IF(ISBLANK(F9),0,F$1*F9),IF(ISBLANK(G9),0,G$1 *G9),IF(ISBLANK(H9),0,H$1*H9))

I still have the question on why a 'blank' would end up being evaluated as a
'1' when you find a product. When the formula is a 'SUM' the blank is
considered a '0' ... so why is it different if it it s product? Maybe
someone from Microsoft can tell me??





"Anne Troy" wrote:

Would help to see your formula, but:
=if(isblank(a1),"",a1*b1)
************
Anne Troy
VBA Project Manager
www.OfficeArticles.com

"thomson" wrote in message
...
I am creating a spreadsheet dealing with dollars. There are several
formulas
that I have created using percentages. One particular formula multiplies
a
percent in one cell by the $ value in another. If I have no $ value in
the
cell the formula uses a '1' instead of what I would expect '0'. How can I
set up my sheet so that if a cell is blank the default value will be '0'?



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
Extrapolate numeric values from text string Henrik Excel Worksheet Functions 4 November 3rd 05 06:25 PM
Match Each Numeric occurrence and Return Individual Rows of Data Sam via OfficeKB.com Excel Worksheet Functions 4 October 13th 05 04:22 AM
AVERAGE Row of Numbers and Return Corresponding Numeric Label Sam via OfficeKB.com Excel Worksheet Functions 14 September 20th 05 01:07 AM
Setting a default save folder for a template postitnote100 Excel Discussion (Misc queries) 1 July 8th 05 09:30 PM
Setting and KEEPING the default chart redbelly Charts and Charting in Excel 0 June 30th 05 02:35 PM


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