Hi
I am building a standard report template where the format does not
alter. I pull information from another table into this standard
report. The trouble is that the report I pull from changes so when I
have a formula =VLOOKUP(A674,B11:AW673,11,0) and there is no
information I get a #n/a error. I would like to have a 0 or blank
returned to enable totalling to work as some cells have figures in
them whilst others have n/a which prevents
=SUM(F696:F697) etc from working.
Cheers
Brian
Gary''s Student - 06 Jan 2008 13:57 GMT
=IF(ISERROR(VLOOKUP(A674,B11:AW673,11,0)),0,VLOOKUP(A674,B11:AW673,11,0))

Signature
Gary''s Student - gsnu2007c
Ron Coderre - 06 Jan 2008 15:25 GMT
Try something like this:
=IF(COUNTIF(B11:B673,A674),VLOOKUP(A674,B11:AW673,11,0),0)
Does that help?
--------------------------
Regards,
Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
> Hi
>
[quoted text clipped - 10 lines]
>
> Brian
brian.baker13@googlemail.com - 06 Jan 2008 18:58 GMT
On Jan 6, 3:25 pm, "Ron Coderre" <ronREMOVETHIScode...@bigfoot.com>
wrote:
> Try something like this:
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -
Hi Ron
This works but I have an =sum(xxx) a couple of lines below referencing
this cell and others but I am getting returned a 0 even when figures
are in the other cells
Ta
Brian
Pete_UK - 06 Jan 2008 21:16 GMT
Hi Brian,
the "numbers" in your data table are probably text values which just
look like numbers - try this amendment to Ron's formula:
=IF(COUNTIF(B11:B673,A674),VLOOKUP(A674,B11:AW673,11,0)+0,0)
This should turn the values into numbers.
Hope this helps.
Pete
On Jan 6, 6:58 pm, "brian.bake...@googlemail.com"
<brian.bake...@googlemail.com> wrote:
> On Jan 6, 3:25 pm, "Ron Coderre" <ronREMOVETHIScode...@bigfoot.com>
> wrote:
[quoted text clipped - 44 lines]
>
> - Show quoted text -
brian.baker13@googlemail.com - 07 Jan 2008 07:52 GMT
> Hi Brian,
>
[quoted text clipped - 62 lines]
>
> - Show quoted text -
Cheers
Works a treat
Pete_UK - 07 Jan 2008 09:08 GMT
You're welcome.
Pete
On Jan 7, 7:52 am, "brian.bake...@googlemail.com"
<brian.bake...@googlemail.com> wrote:
> > Hi Brian,
>
[quoted text clipped - 68 lines]
>
> - Show quoted text -
Gord Dibben - 06 Jan 2008 17:16 GMT
=IF(ISNA(vlookup formula),"",(vlookup formula)
Returns a blank.
Gord Dibben MS Excel MVP
>Hi
>
[quoted text clipped - 10 lines]
>
>Brian
brian.baker13@googlemail.com - 06 Jan 2008 19:05 GMT
On Jan 6, 1:16 pm, "brian.bake...@googlemail.com"
<brian.bake...@googlemail.com> wrote:
> Hi
>
[quoted text clipped - 10 lines]
>
> Brian
Hi Gary
This works but a cell that sums those above including a674 now returns
an error how do I update =SUM(B672:B674).
Ta
Brian