Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default need help with nested formulas please

Hello--

I'm only familiar with Excel on a very basic level, and I'm stuck with
two different problems I can't solve.

1) I have an inventory sheet with details about a product. I use
similar formulas to give me totals from two different columns:

=COUNTIF(A1:A10,"Steel")

=COUNTIF(F1:F10,"Square")

What I would like to do is filter the results of the first formula
("Steel") with the second formula ("Square"), so that I will get a
total of products that are made of steel and are also square.

I realize this is probably a simple question, but I just can't seem to
figure it out. All the examples I find involve counting numeric
values, and the formulas I have tried fail when I try and count text
values instead.

2) My second problem is a divide by zero issue. The formula I use to
tell me what percentage of my total inventory I have on my floor is

=SUM(Local_Inventory!D6/Total_Inventory!D5)

It works fine when either cell has a value greater than 0, but on the
rare occasion that both are zero (like when I'm completely sold out of
a product), is there some way to get the worksheet to display a zero
instead of #DIV/0! ?

Any help is greatly appreciated, thanks in advance!
Dave

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default need help with nested formulas please

ONe way:

=SUMPRODUCT(--(A1:A10="Steel"),--(F1:F10="Square"))

HTH,
Paul

--

wrote in message
ups.com...
Hello--

I'm only familiar with Excel on a very basic level, and I'm stuck with
two different problems I can't solve.

1) I have an inventory sheet with details about a product. I use
similar formulas to give me totals from two different columns:

=COUNTIF(A1:A10,"Steel")

=COUNTIF(F1:F10,"Square")

What I would like to do is filter the results of the first formula
("Steel") with the second formula ("Square"), so that I will get a
total of products that are made of steel and are also square.

I realize this is probably a simple question, but I just can't seem to
figure it out. All the examples I find involve counting numeric
values, and the formulas I have tried fail when I try and count text
values instead.

2) My second problem is a divide by zero issue. The formula I use to
tell me what percentage of my total inventory I have on my floor is

=SUM(Local_Inventory!D6/Total_Inventory!D5)

It works fine when either cell has a value greater than 0, but on the
rare occasion that both are zero (like when I'm completely sold out of
a product), is there some way to get the worksheet to display a zero
instead of #DIV/0! ?

Any help is greatly appreciated, thanks in advance!
Dave



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default need help with nested formulas please

For your first question, try this:

=SUMPRODUCT(--(A1:A10="Steel"),--(F1:F10="Square"))

For your second question:

=IF(Total_Inventory!D5=0,0,Local_Inventory!D6/Total_Inventory!D5)

HTH,
Elkar


" wrote:

Hello--

I'm only familiar with Excel on a very basic level, and I'm stuck with
two different problems I can't solve.

1) I have an inventory sheet with details about a product. I use
similar formulas to give me totals from two different columns:

=COUNTIF(A1:A10,"Steel")

=COUNTIF(F1:F10,"Square")

What I would like to do is filter the results of the first formula
("Steel") with the second formula ("Square"), so that I will get a
total of products that are made of steel and are also square.

I realize this is probably a simple question, but I just can't seem to
figure it out. All the examples I find involve counting numeric
values, and the formulas I have tried fail when I try and count text
values instead.

2) My second problem is a divide by zero issue. The formula I use to
tell me what percentage of my total inventory I have on my floor is

=SUM(Local_Inventory!D6/Total_Inventory!D5)

It works fine when either cell has a value greater than 0, but on the
rare occasion that both are zero (like when I'm completely sold out of
a product), is there some way to get the worksheet to display a zero
instead of #DIV/0! ?

Any help is greatly appreciated, thanks in advance!
Dave


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default need help with nested formulas please

Thank you both Elkar and Paul, your tips helped me greatly!

best,
Pmack

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
Nested-IF formulas GARY Excel Discussion (Misc queries) 4 March 24th 07 12:45 AM
how to do nested IF formulas BigTim Excel Discussion (Misc queries) 5 September 12th 06 07:39 PM
help in nested if formulas John48 Excel Worksheet Functions 1 July 21st 06 08:01 AM
if nested formulas marleneardon Excel Discussion (Misc queries) 1 May 11th 06 12:23 PM
nested formulas dutchtreet Excel Worksheet Functions 5 February 3rd 05 08:25 PM


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