Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Subtotal not working with #N/A in the cell

I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I tried to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my formula
works?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Subtotal not working with #N/A in the cell

=if(iserror(hlookup(...)),0,hlookup(...))
=if(iserror(hlookup(...)),"",hlookup(...))

to return 0 or to return an empty string (cell looks empty).

Send Object Command - Two attachments wrote:

I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I tried to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my formula
works?

Thanks!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Subtotal not working with #N/A in the cell

In the originating HLOOKUP use an IF(ISNA...combination

=IF(ISNA(YourHLOOKUP),0,YourHLOOKUP))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Send Object Command - Two attachments"
soft.com wrote in message
...
I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I tried
to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my
formula
works?

Thanks!


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Subtotal not working with #N/A in the cell

Correction

IF(ISNA(YourHLOOKUP),0,YourHLOOKUP)


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
In the originating HLOOKUP use an IF(ISNA...combination

=IF(ISNA(YourHLOOKUP),0,YourHLOOKUP))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Send Object Command - Two attachments"
soft.com wrote in
message ...
I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I
tried to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my
formula
works?

Thanks!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Subtotal not working with #N/A in the cell

Works great! Thank You.

"Nick Hodge" wrote:

Correction

IF(ISNA(YourHLOOKUP),0,YourHLOOKUP)


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
In the originating HLOOKUP use an IF(ISNA...combination

=IF(ISNA(YourHLOOKUP),0,YourHLOOKUP))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Send Object Command - Two attachments"
soft.com wrote in
message ...
I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I
tried to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my
formula
works?

Thanks!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default Subtotal not working with #N/A in the cell

Great

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Send Object Command - Two attachments"
soft.com wrote in message
...
Works great! Thank You.

"Nick Hodge" wrote:

Correction

IF(ISNA(YourHLOOKUP),0,YourHLOOKUP)


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Nick Hodge" wrote in message
...
In the originating HLOOKUP use an IF(ISNA...combination

=IF(ISNA(YourHLOOKUP),0,YourHLOOKUP))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Send Object Command - Two attachments"
soft.com wrote in
message ...
I have a hllookup formula that provides certain results as #N/A....I
understand why I get a #N/A, however, I need to subtotal the row. I
tried to
use the subtotal formula, but it does not recognize #N/A as a number,
obviously cause it is not a number. I need to add these up for
example:
10, 20, #N/A, #N/A, Subtotal: 30

How can I convert the #N/A so that they are "0" or blank so that my
formula
works?

Thanks!



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
Cell References [email protected] Excel Discussion (Misc queries) 2 November 15th 06 11:37 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Can I concatenate text in cells to make a working formula? Matt S. R. Excel Discussion (Misc queries) 11 November 11th 05 03:44 PM


All times are GMT +1. The time now is 05:06 AM.

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"