#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Subtotal

How do I get a subtotal when the data I am Subtotaling contains #n/a without
returning an answer of #n/a.


I am using =SUBTOTAL(9,M6:M199)/SUBTOTAL(9,P6:P199)/1440

This formula takes total time in seconds divided by total calls divided by
1440 and the cell is formated to time. The answer should return a time in
minutes and seconds; however, it returns #n/a. How would I get the formula to
ignore the #n/a in the data set that it is calculating?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Subtotal

John wrote:
How do I get a subtotal when the data I am Subtotaling contains #n/a without
returning an answer of #n/a.


I am using =SUBTOTAL(9,M6:M199)/SUBTOTAL(9,P6:P199)/1440

This formula takes total time in seconds divided by total calls divided by
1440 and the cell is formated to time. The answer should return a time in
minutes and seconds; however, it returns #n/a. How would I get the formula to
ignore the #n/a in the data set that it is calculating?


Can you get rid of the #N/A result that is causing the problem? What is the
formula in that cell or cells?
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Subtotal

The cell that contains#N/A is the following formula:

=IF(ISBLANK(B168:B168)," ",VLOOKUP(B168,STATS!D:N,11,FALSE))

I would like to make the above formula return an empty value. The above
formula is searching in a database for a name. That name does not exist in
the database therefor it returns the #N/A. I would prefer that it just return
nothing.

"Glenn" wrote:

John wrote:
How do I get a subtotal when the data I am Subtotaling contains #n/a without
returning an answer of #n/a.


I am using =SUBTOTAL(9,M6:M199)/SUBTOTAL(9,P6:P199)/1440

This formula takes total time in seconds divided by total calls divided by
1440 and the cell is formated to time. The answer should return a time in
minutes and seconds; however, it returns #n/a. How would I get the formula to
ignore the #n/a in the data set that it is calculating?


Can you get rid of the #N/A result that is causing the problem? What is the
formula in that cell or cells?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Subtotal

Change the VLOOKUP formula.

=IF(ISNA(VLOOKUP(B168,STATS!D:N,11,FALSE)),"",VLOO KUP(B168,STATS!D:N,11,FALSE))

Note: "" which is blank " " returns a space.


Gord Dibben MS Excel MVP

On Mon, 2 Feb 2009 14:12:13 -0800, John
wrote:

The cell that contains#N/A is the following formula:

=IF(ISBLANK(B168:B168)," ",VLOOKUP(B168,STATS!D:N,11,FALSE))

I would like to make the above formula return an empty value. The above
formula is searching in a database for a name. That name does not exist in
the database therefor it returns the #N/A. I would prefer that it just return
nothing.

"Glenn" wrote:

John wrote:
How do I get a subtotal when the data I am Subtotaling contains #n/a without
returning an answer of #n/a.


I am using =SUBTOTAL(9,M6:M199)/SUBTOTAL(9,P6:P199)/1440

This formula takes total time in seconds divided by total calls divided by
1440 and the cell is formated to time. The answer should return a time in
minutes and seconds; however, it returns #n/a. How would I get the formula to
ignore the #n/a in the data set that it is calculating?


Can you get rid of the #N/A result that is causing the problem? What is the
formula in that cell or cells?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Subtotal

Hi,

You could try something like this as well:

=(sumif(M6:M199,"=-9.99999E307")/sumif(P6:P199,"=-9.99999E307"))/1440

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"John" wrote in message
...
How do I get a subtotal when the data I am Subtotaling contains #n/a
without
returning an answer of #n/a.


I am using =SUBTOTAL(9,M6:M199)/SUBTOTAL(9,P6:P199)/1440

This formula takes total time in seconds divided by total calls divided by
1440 and the cell is formated to time. The answer should return a time in
minutes and seconds; however, it returns #n/a. How would I get the formula
to
ignore the #n/a in the data set that it is calculating?


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 do I Subtotal, then Sort by Subtotal Amounts? dnamertz Excel Discussion (Misc queries) 3 October 29th 06 12:17 AM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
copy subtotal value only, subtotal value can be vlookup by others BB Excel Discussion (Misc queries) 1 June 28th 06 11:10 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 03:54 AM.

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"