PC Review


Reply
Thread Tools Rate Thread

How can I get an empty cell with a formula

 
 
=?Utf-8?B?S2VpdGg=?=
Guest
Posts: n/a
 
      15th Nov 2006
I have a routine that runs when I save the workbook. It looks along rows 3 -
23 and columns A - AF. If there is an entry in any of the cells in a row
then the cells for that row in columns D - G must have a value.

The mail part of the code looks like this:

If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

where i is the value in a for next loop going from 3 - 23.

This routine works great. Unfortunatly I now need column E to be
automaticaly entered based on a Vlookup and the value in column D. The
formula for E is:

=IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")

This works as well but for some reason column E now has a count of 1.

Is there any way that I can have the Counta of column E equal 0 if there is
no entry in it?I have a routine that runs when I save the workbook. It looks
along rows 3 - 23 and columns A - AF. If there is an entry in any of the
cells in a row then the cells for that row in columns D - G must have a value.

The mail part of the code looks like this:

If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

where i is the value in a for next loop going from 3 - 23.

This routine works great. Unfortunately I now need column E to be
automatically entered based on a Vlookup and the value in column D. The
formula for E is:

=IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")

This works as well but for some reason column E now has a count of 1.

Is there any way that I can have the Counta of column E equal 0 if there is
no entry in it?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2ZSBSYW1hZ2U=?=
Guest
Posts: n/a
 
      15th Nov 2006
If I understand you correctly then this logic should work:

If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
(Application.CountA(Range("D" & i & ":G" & i)) < 4 Or Range("E" & i).Value =
"") Then

Cheers,
Dave

"Keith" wrote:

> I have a routine that runs when I save the workbook. It looks along rows 3 -
> 23 and columns A - AF. If there is an entry in any of the cells in a row
> then the cells for that row in columns D - G must have a value.
>
> The mail part of the code looks like this:
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> where i is the value in a for next loop going from 3 - 23.
>
> This routine works great. Unfortunatly I now need column E to be
> automaticaly entered based on a Vlookup and the value in column D. The
> formula for E is:
>
> =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
>
> This works as well but for some reason column E now has a count of 1.
>
> Is there any way that I can have the Counta of column E equal 0 if there is
> no entry in it?I have a routine that runs when I save the workbook. It looks
> along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> cells in a row then the cells for that row in columns D - G must have a value.
>
> The mail part of the code looks like this:
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> where i is the value in a for next loop going from 3 - 23.
>
> This routine works great. Unfortunately I now need column E to be
> automatically entered based on a Vlookup and the value in column D. The
> formula for E is:
>
> =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
>
> This works as well but for some reason column E now has a count of 1.
>
> Is there any way that I can have the Counta of column E equal 0 if there is
> no entry in it?
>

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      15th Nov 2006
Use CountBlank instead.
If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

--
Regards,
Tom Ogilvy


"Keith" wrote:

> I have a routine that runs when I save the workbook. It looks along rows 3 -
> 23 and columns A - AF. If there is an entry in any of the cells in a row
> then the cells for that row in columns D - G must have a value.
>
> The mail part of the code looks like this:
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> where i is the value in a for next loop going from 3 - 23.
>
> This routine works great. Unfortunatly I now need column E to be
> automaticaly entered based on a Vlookup and the value in column D. The
> formula for E is:
>
> =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
>
> This works as well but for some reason column E now has a count of 1.
>
> Is there any way that I can have the Counta of column E equal 0 if there is
> no entry in it?I have a routine that runs when I save the workbook. It looks
> along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> cells in a row then the cells for that row in columns D - G must have a value.
>
> The mail part of the code looks like this:
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> where i is the value in a for next loop going from 3 - 23.
>
> This routine works great. Unfortunately I now need column E to be
> automatically entered based on a Vlookup and the value in column D. The
> formula for E is:
>
> =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
>
> This works as well but for some reason column E now has a count of 1.
>
> Is there any way that I can have the Counta of column E equal 0 if there is
> no entry in it?
>

 
Reply With Quote
 
=?Utf-8?B?S2VpdGg=?=
Guest
Posts: n/a
 
      15th Nov 2006
Thanks for your help but both sugetions above won't work. However I have
found a solution.

Since column E will be filled in automaticaly the code for the Counta will
always be 1 or greater so all I need to do is change the first par from 0 to
1

i.e. instead of

If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

I use:

If Application.CountA(Range("A" & i & ":AF" & i)) > 1 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

My code now works.

Thanks for your help.

"Tom Ogilvy" wrote:

> Use CountBlank instead.
> If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Keith" wrote:
>
> > I have a routine that runs when I save the workbook. It looks along rows 3 -
> > 23 and columns A - AF. If there is an entry in any of the cells in a row
> > then the cells for that row in columns D - G must have a value.
> >
> > The mail part of the code looks like this:
> >
> > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> >
> > where i is the value in a for next loop going from 3 - 23.
> >
> > This routine works great. Unfortunatly I now need column E to be
> > automaticaly entered based on a Vlookup and the value in column D. The
> > formula for E is:
> >
> > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> >
> > This works as well but for some reason column E now has a count of 1.
> >
> > Is there any way that I can have the Counta of column E equal 0 if there is
> > no entry in it?I have a routine that runs when I save the workbook. It looks
> > along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> > cells in a row then the cells for that row in columns D - G must have a value.
> >
> > The mail part of the code looks like this:
> >
> > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> >
> > where i is the value in a for next loop going from 3 - 23.
> >
> > This routine works great. Unfortunately I now need column E to be
> > automatically entered based on a Vlookup and the value in column D. The
> > formula for E is:
> >
> > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> >
> > This works as well but for some reason column E now has a count of 1.
> >
> > Is there any way that I can have the Counta of column E equal 0 if there is
> > no entry in it?
> >

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      15th Nov 2006
Since countblank will see the result of "" produced by your formula as a
blank, it is unclear why you say it won't work, but I would assume the
problem lies in implementation rather than in the suggestion.

Glad you figured out your own problem.

--
Regards,
Tom Ogilvy


"Keith" wrote:

> Thanks for your help but both sugetions above won't work. However I have
> found a solution.
>
> Since column E will be filled in automaticaly the code for the Counta will
> always be 1 or greater so all I need to do is change the first par from 0 to
> 1
>
> i.e. instead of
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> I use:
>
> If Application.CountA(Range("A" & i & ":AF" & i)) > 1 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> My code now works.
>
> Thanks for your help.
>
> "Tom Ogilvy" wrote:
>
> > Use CountBlank instead.
> > If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Keith" wrote:
> >
> > > I have a routine that runs when I save the workbook. It looks along rows 3 -
> > > 23 and columns A - AF. If there is an entry in any of the cells in a row
> > > then the cells for that row in columns D - G must have a value.
> > >
> > > The mail part of the code looks like this:
> > >
> > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > >
> > > where i is the value in a for next loop going from 3 - 23.
> > >
> > > This routine works great. Unfortunatly I now need column E to be
> > > automaticaly entered based on a Vlookup and the value in column D. The
> > > formula for E is:
> > >
> > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > >
> > > This works as well but for some reason column E now has a count of 1.
> > >
> > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > no entry in it?I have a routine that runs when I save the workbook. It looks
> > > along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> > > cells in a row then the cells for that row in columns D - G must have a value.
> > >
> > > The mail part of the code looks like this:
> > >
> > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > >
> > > where i is the value in a for next loop going from 3 - 23.
> > >
> > > This routine works great. Unfortunately I now need column E to be
> > > automatically entered based on a Vlookup and the value in column D. The
> > > formula for E is:
> > >
> > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > >
> > > This works as well but for some reason column E now has a count of 1.
> > >
> > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > no entry in it?
> > >

 
Reply With Quote
 
=?Utf-8?B?S2VpdGg=?=
Guest
Posts: n/a
 
      15th Nov 2006
Hi Tom,

I did try your code. the whole for next loop now looks like this
For i = 3 To 23
If Application.CountBlank(Range("A" & i & ":AF" & i)) > 0 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
flag = True
Exit For
End If
Next i

But this still dosn't work.

As I said I did find a solution, but I didn't want you to think that I
hadn't tried your method.

Thanks Again

Keith
"Tom Ogilvy" wrote:

> Since countblank will see the result of "" produced by your formula as a
> blank, it is unclear why you say it won't work, but I would assume the
> problem lies in implementation rather than in the suggestion.
>
> Glad you figured out your own problem.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Keith" wrote:
>
> > Thanks for your help but both sugetions above won't work. However I have
> > found a solution.
> >
> > Since column E will be filled in automaticaly the code for the Counta will
> > always be 1 or greater so all I need to do is change the first par from 0 to
> > 1
> >
> > i.e. instead of
> >
> > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> >
> > I use:
> >
> > If Application.CountA(Range("A" & i & ":AF" & i)) > 1 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> >
> > My code now works.
> >
> > Thanks for your help.
> >
> > "Tom Ogilvy" wrote:
> >
> > > Use CountBlank instead.
> > > If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Keith" wrote:
> > >
> > > > I have a routine that runs when I save the workbook. It looks along rows 3 -
> > > > 23 and columns A - AF. If there is an entry in any of the cells in a row
> > > > then the cells for that row in columns D - G must have a value.
> > > >
> > > > The mail part of the code looks like this:
> > > >
> > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > >
> > > > where i is the value in a for next loop going from 3 - 23.
> > > >
> > > > This routine works great. Unfortunatly I now need column E to be
> > > > automaticaly entered based on a Vlookup and the value in column D. The
> > > > formula for E is:
> > > >
> > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > >
> > > > This works as well but for some reason column E now has a count of 1.
> > > >
> > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > no entry in it?I have a routine that runs when I save the workbook. It looks
> > > > along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> > > > cells in a row then the cells for that row in columns D - G must have a value.
> > > >
> > > > The mail part of the code looks like this:
> > > >
> > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > >
> > > > where i is the value in a for next loop going from 3 - 23.
> > > >
> > > > This routine works great. Unfortunately I now need column E to be
> > > > automatically entered based on a Vlookup and the value in column D. The
> > > > formula for E is:
> > > >
> > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > >
> > > > This works as well but for some reason column E now has a count of 1.
> > > >
> > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > no entry in it?
> > > >

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      15th Nov 2006
If the code you used was the code you showed, then you didn't try out my
suggestion. My suggestion was:

If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
Application.CountA(Range("D" & i & ":G" & i)) < 4 Then

to determine if the row was not all blank and then, in that case Dx:Gx was
not filled.

As I said, the problem was in your implementation, not the suggestion.

--
Regards,
Tom Ogilvy


"Keith" wrote:

> Hi Tom,
>
> I did try your code. the whole for next loop now looks like this
> For i = 3 To 23
> If Application.CountBlank(Range("A" & i & ":AF" & i)) > 0 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> flag = True
> Exit For
> End If
> Next i
>
> But this still dosn't work.
>
> As I said I did find a solution, but I didn't want you to think that I
> hadn't tried your method.
>
> Thanks Again
>
> Keith
> "Tom Ogilvy" wrote:
>
> > Since countblank will see the result of "" produced by your formula as a
> > blank, it is unclear why you say it won't work, but I would assume the
> > problem lies in implementation rather than in the suggestion.
> >
> > Glad you figured out your own problem.
> >
> > --
> > Regards,
> > Tom Ogilvy
> >
> >
> > "Keith" wrote:
> >
> > > Thanks for your help but both sugetions above won't work. However I have
> > > found a solution.
> > >
> > > Since column E will be filled in automaticaly the code for the Counta will
> > > always be 1 or greater so all I need to do is change the first par from 0 to
> > > 1
> > >
> > > i.e. instead of
> > >
> > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > >
> > > I use:
> > >
> > > If Application.CountA(Range("A" & i & ":AF" & i)) > 1 And
> > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > >
> > > My code now works.
> > >
> > > Thanks for your help.
> > >
> > > "Tom Ogilvy" wrote:
> > >
> > > > Use CountBlank instead.
> > > > If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > >
> > > > --
> > > > Regards,
> > > > Tom Ogilvy
> > > >
> > > >
> > > > "Keith" wrote:
> > > >
> > > > > I have a routine that runs when I save the workbook. It looks along rows 3 -
> > > > > 23 and columns A - AF. If there is an entry in any of the cells in a row
> > > > > then the cells for that row in columns D - G must have a value.
> > > > >
> > > > > The mail part of the code looks like this:
> > > > >
> > > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > > >
> > > > > where i is the value in a for next loop going from 3 - 23.
> > > > >
> > > > > This routine works great. Unfortunatly I now need column E to be
> > > > > automaticaly entered based on a Vlookup and the value in column D. The
> > > > > formula for E is:
> > > > >
> > > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > > >
> > > > > This works as well but for some reason column E now has a count of 1.
> > > > >
> > > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > > no entry in it?I have a routine that runs when I save the workbook. It looks
> > > > > along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> > > > > cells in a row then the cells for that row in columns D - G must have a value.
> > > > >
> > > > > The mail part of the code looks like this:
> > > > >
> > > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > > >
> > > > > where i is the value in a for next loop going from 3 - 23.
> > > > >
> > > > > This routine works great. Unfortunately I now need column E to be
> > > > > automatically entered based on a Vlookup and the value in column D. The
> > > > > formula for E is:
> > > > >
> > > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > > >
> > > > > This works as well but for some reason column E now has a count of 1.
> > > > >
> > > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > > no entry in it?
> > > > >

 
Reply With Quote
 
=?Utf-8?B?S2VpdGg=?=
Guest
Posts: n/a
 
      16th Nov 2006
Tom

You are quite right. My sincere apologies. I don't know what the time was
with you yesterday but for me it was getting to the end of a rather stressful
day.

Your solution does work.

Thanks again

Keith

"Tom Ogilvy" wrote:

> If the code you used was the code you showed, then you didn't try out my
> suggestion. My suggestion was:
>
> If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
>
> to determine if the row was not all blank and then, in that case Dx:Gx was
> not filled.
>
> As I said, the problem was in your implementation, not the suggestion.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Keith" wrote:
>
> > Hi Tom,
> >
> > I did try your code. the whole for next loop now looks like this
> > For i = 3 To 23
> > If Application.CountBlank(Range("A" & i & ":AF" & i)) > 0 And
> > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > flag = True
> > Exit For
> > End If
> > Next i
> >
> > But this still dosn't work.
> >
> > As I said I did find a solution, but I didn't want you to think that I
> > hadn't tried your method.
> >
> > Thanks Again
> >
> > Keith
> > "Tom Ogilvy" wrote:
> >
> > > Since countblank will see the result of "" produced by your formula as a
> > > blank, it is unclear why you say it won't work, but I would assume the
> > > problem lies in implementation rather than in the suggestion.
> > >
> > > Glad you figured out your own problem.
> > >
> > > --
> > > Regards,
> > > Tom Ogilvy
> > >
> > >
> > > "Keith" wrote:
> > >
> > > > Thanks for your help but both sugetions above won't work. However I have
> > > > found a solution.
> > > >
> > > > Since column E will be filled in automaticaly the code for the Counta will
> > > > always be 1 or greater so all I need to do is change the first par from 0 to
> > > > 1
> > > >
> > > > i.e. instead of
> > > >
> > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > >
> > > > I use:
> > > >
> > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 1 And
> > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > >
> > > > My code now works.
> > > >
> > > > Thanks for your help.
> > > >
> > > > "Tom Ogilvy" wrote:
> > > >
> > > > > Use CountBlank instead.
> > > > > If Application.CountBlank(Range("A" & i & ":AF" & i)) < 32 And
> > > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > > >
> > > > > --
> > > > > Regards,
> > > > > Tom Ogilvy
> > > > >
> > > > >
> > > > > "Keith" wrote:
> > > > >
> > > > > > I have a routine that runs when I save the workbook. It looks along rows 3 -
> > > > > > 23 and columns A - AF. If there is an entry in any of the cells in a row
> > > > > > then the cells for that row in columns D - G must have a value.
> > > > > >
> > > > > > The mail part of the code looks like this:
> > > > > >
> > > > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > > > >
> > > > > > where i is the value in a for next loop going from 3 - 23.
> > > > > >
> > > > > > This routine works great. Unfortunatly I now need column E to be
> > > > > > automaticaly entered based on a Vlookup and the value in column D. The
> > > > > > formula for E is:
> > > > > >
> > > > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > > > >
> > > > > > This works as well but for some reason column E now has a count of 1.
> > > > > >
> > > > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > > > no entry in it?I have a routine that runs when I save the workbook. It looks
> > > > > > along rows 3 - 23 and columns A - AF. If there is an entry in any of the
> > > > > > cells in a row then the cells for that row in columns D - G must have a value.
> > > > > >
> > > > > > The mail part of the code looks like this:
> > > > > >
> > > > > > If Application.CountA(Range("A" & i & ":AF" & i)) > 0 And
> > > > > > Application.CountA(Range("D" & i & ":G" & i)) < 4 Then
> > > > > >
> > > > > > where i is the value in a for next loop going from 3 - 23.
> > > > > >
> > > > > > This routine works great. Unfortunately I now need column E to be
> > > > > > automatically entered based on a Vlookup and the value in column D. The
> > > > > > formula for E is:
> > > > > >
> > > > > > =IF(D3<>"",VLOOKUP(D3,HospitalCity,2),"")
> > > > > >
> > > > > > This works as well but for some reason column E now has a count of 1.
> > > > > >
> > > > > > Is there any way that I can have the Counta of column E equal 0 if there is
> > > > > > no entry in it?
> > > > > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
format a cell with a formula so an empty reference cell shows blan =?Utf-8?B?TTI=?= Microsoft Excel Misc 3 7th Nov 2006 10:42 PM
formula, move to previous cell when the current cell=0 or empty =?Utf-8?B?b3NhbWEgYW1lcg==?= Microsoft Excel Misc 0 29th May 2006 12:18 PM
Dropping the cell in the empty cell by formula xgunda420x Microsoft Excel Misc 0 1st Feb 2006 07:11 PM
How do I leave formula cell blank if 2nd reference cell is empty? =?Utf-8?B?TGlhbmEgUw==?= Microsoft Excel Misc 2 21st Oct 2005 04:38 PM
Can I empty the cell who has formula in it Man Utd Microsoft Excel Worksheet Functions 4 16th Jun 2005 07:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:26 PM.