WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Remove #NUM! ISERROR when using array formulas

 
   Home -> Office -> New Users RSS
Next:  Enforce format  
Author Message
Struggling in Sheffield

External


Since: Oct 12, 2009
Posts: 2



(Msg. 1) Posted: Mon Oct 12, 2009 1:59 pm
Post subject: Remove #NUM! ISERROR when using array formulas
Archived from groups: microsoft>public>excel>newusers (more info?)

Hi all,
I’m using the following array formula to copy certain rows of data from a
master table into smaller tables located below the master:

{etc}

{=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),3),COLUMN()))}

{=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),2),COLUMN()))}

{=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),1),COLUMN()))}

I can then do various calculations using the smaller tables.

However where the smaller tables aren’t completely filled with data I’m
getting a #NUM! error, which unfortunately plays havoc with some of my
calculations.

Normally I would just use something like the formula below to leave any
error cells blank:

=IF(ISERROR(FORMULA),””,FORMULA)

However I’m not sure how to marry the two together when using an array
formula.

Would appreciate any help to break the impasse.

Cheers,
Steve.
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 6829



(Msg. 2) Posted: Mon Oct 12, 2009 10:10 pm
Post subject: Re: Remove #NUM! ISERROR when using array formulas [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The portion of the formula that will generate the #NUM! error is:

LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)

Where n = instance number. If there isn't an nth instance then you get
#NUM!.

So, you can just trap that portion like this (still array entered):

=IF(ISERROR(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)),"",INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n),COLUMN())))

--
Biff
Microsoft Excel MVP


"Struggling in Sheffield" <StrugglinginSheffield.DeleteThis@discussions.microsoft.com>
wrote in message news:C5B50D07-41AC-42AC-BB53-E61A22DCBCF3@microsoft.com...
> Hi all,
> I'm using the following array formula to copy certain rows of data from a
> master table into smaller tables located below the master:
>
> {etc}
>
> {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),3),COLUMN()))}
>
> {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),2),COLUMN()))}
>
> {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),1),COLUMN()))}
>
> I can then do various calculations using the smaller tables.
>
> However where the smaller tables aren't completely filled with data I'm
> getting a #NUM! error, which unfortunately plays havoc with some of my
> calculations.
>
> Normally I would just use something like the formula below to leave any
> error cells blank:
>
> =IF(ISERROR(FORMULA),"",FORMULA)
>
> However I'm not sure how to marry the two together when using an array
> formula.
>
> Would appreciate any help to break the impasse.
>
> Cheers,
> Steve.
>
Back to top
Login to vote
Struggling in Sheffield

External


Since: Oct 12, 2009
Posts: 2



(Msg. 3) Posted: Thu Oct 15, 2009 8:08 am
Post subject: Re: Remove #NUM! ISERROR when using array formulas [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Biff,
Thanks very much for that, tried many variations on the theme but just
couldn't hit the bullseye.
All the best.
Steve.

"T. Valko" wrote:

> The portion of the formula that will generate the #NUM! error is:
>
> LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)
>
> Where n = instance number. If there isn't an nth instance then you get
> #NUM!.
>
> So, you can just trap that portion like this (still array entered):
>
> =IF(ISERROR(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)),"",INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n),COLUMN())))
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Struggling in Sheffield" <StrugglinginSheffield.RemoveThis@discussions.microsoft.com>
> wrote in message news:C5B50D07-41AC-42AC-BB53-E61A22DCBCF3@microsoft.com...
> > Hi all,
> > I'm using the following array formula to copy certain rows of data from a
> > master table into smaller tables located below the master:
> >
> > {etc}
> >
> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),3),COLUMN()))}
> >
> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),2),COLUMN()))}
> >
> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),1),COLUMN()))}
> >
> > I can then do various calculations using the smaller tables.
> >
> > However where the smaller tables aren't completely filled with data I'm
> > getting a #NUM! error, which unfortunately plays havoc with some of my
> > calculations.
> >
> > Normally I would just use something like the formula below to leave any
> > error cells blank:
> >
> > =IF(ISERROR(FORMULA),"",FORMULA)
> >
> > However I'm not sure how to marry the two together when using an array
> > formula.
> >
> > Would appreciate any help to break the impasse.
> >
> > Cheers,
> > Steve.
> >
>
>
>
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 6829



(Msg. 4) Posted: Thu Oct 15, 2009 12:26 pm
Post subject: Re: Remove #NUM! ISERROR when using array formulas [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Struggling in Sheffield" <StrugglinginSheffield RemoveThis @discussions.microsoft.com>
wrote in message news:61359718-2F22-424A-93D1-46AD09E8D258@microsoft.com...
> Hi Biff,
> Thanks very much for that, tried many variations on the theme but just
> couldn't hit the bullseye.
> All the best.
> Steve.
>
> "T. Valko" wrote:
>
>> The portion of the formula that will generate the #NUM! error is:
>>
>> LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)
>>
>> Where n = instance number. If there isn't an nth instance then you get
>> #NUM!.
>>
>> So, you can just trap that portion like this (still array entered):
>>
>> =IF(ISERROR(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n)),"",INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),n),COLUMN())))
>>
>> --
>> Biff
>> Microsoft Excel MVP
>>
>>
>> "Struggling in Sheffield"
>> <StrugglinginSheffield RemoveThis @discussions.microsoft.com>
>> wrote in message
>> news:C5B50D07-41AC-42AC-BB53-E61A22DCBCF3@microsoft.com...
>> > Hi all,
>> > I'm using the following array formula to copy certain rows of data from
>> > a
>> > master table into smaller tables located below the master:
>> >
>> > {etc}
>> >
>> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),3),COLUMN()))}
>> >
>> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),2),COLUMN()))}
>> >
>> > {=INDIRECT(ADDRESS(LARGE(IF($C$3:$C$902=C913,ROW($C$3:$C$902)),1),COLUMN()))}
>> >
>> > I can then do various calculations using the smaller tables.
>> >
>> > However where the smaller tables aren't completely filled with data I'm
>> > getting a #NUM! error, which unfortunately plays havoc with some of my
>> > calculations.
>> >
>> > Normally I would just use something like the formula below to leave any
>> > error cells blank:
>> >
>> > =IF(ISERROR(FORMULA),"",FORMULA)
>> >
>> > However I'm not sure how to marry the two together when using an array
>> > formula.
>> >
>> > Would appreciate any help to break the impasse.
>> >
>> > Cheers,
>> > Steve.
>> >
>>
>>
>>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> New Users All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support