View Single Post
  #16   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default another IF query ......

You're most welcome, it's our pleasure to be of help........please feel free
to come back anytime, and thanks for the feedback.

Vaya con Dios,
Chuck, CABGx3



"englishrose4719" wrote:

You are an absolute star - thank you soooooo much for your helkp and
patience. If im ever in your neck of the woods, I'll buy you a beer.

Take care and thanks again, although Im sure I'll be back with another
problem soon!!!

Carol
x

"CLR" wrote:

It should, you could even change it to this if you wished..........

=IF(OR(AND(COUNTA('Test Data'!AD26:AE43)<0,COUNTA('Test
Data'!Z26:Z43)=0),COUNTA('Test Data'!AB26:AB43)=0),"No follow-up appointments
due","")

Note that if you are using TEXT, that you have to enclose it in the
double-quotes.

Vaya con Dios,
Chuck, CABGx3



"englishrose4719" wrote:

Excellent!! - i think youve cracked it - so if i change the '1' for '0' at
the end will that give me zero in my summary sheet if there are no follow up
appointments due then?


thanks again
Carol

"CLR" wrote:

The result you're seeing is the expected result of the formula......the very
last part says.......if the COUNTA('Test Data'!AB26:AB43)=0, then make the
result 1.....that can be changed of course to whatever you would like

Vaya con Dios,
Chuck, CABGx3


"englishrose4719" wrote:

I think i love you!!!! Ive just tried it again on a different sheet and
replaced the 'test data' bit and it sort of works. The only snag now is that
the data sheet had nothing in it at all but the summary sheet gives me a
total of 1. I dont know if thats better or worse!!!

Carol
x

"CLR" wrote:

Ignore my previous, I was looking at the wrong formula..........

I dunno...........I just re-tested this one and it worked fine.......

=IF(OR(AND(COUNTA('Test Data'!AD26:AE43)<0,COUNTA('Test
Data'!Z26:Z43)=0),COUNTA('Test Data'!AB26:AB43)=0),1,"")

The only other thing I can think of is your SheetName might not be EXACTLY
the same as that in the formula.........might be a leading space or two
spaces in between the words or something like that........Try changing it's
name and then changing it back real carefully..........and don't worry about
coming back and coming back......we're here to try to help you get the
answer........

Vaya con Dios,
Chuck, CABGx3





"englishrose4719" wrote:

No, Sheet 1 is called test data, which is what youve got in your formula.
Im so sorry to be a flipping nuisance but i really am clueless!! Would the
fact that AD and AE are merged cells be causing the problem?

Ive copied and pasted what my sheet looks like

DEALT HANDOVER TO DATE
N U N U
16.5
1 24.6
1 14.5
1 11.7

Carol x

"CLR" wrote:

I dunno, must be some problem with the transfer......I just re-tried copy and
pasteing the formula in to cell C1 on my sheet1 and I get a return of 1, and
considering there is no data in column A, this would be the correct return.

Maybe just try hand-typing the formula in place..........is your Sheet1 for
sure named Sheet1?

Vaya con Dios,
Chuck, CABGx3



"englishrose4719" wrote:

Hi Chuck

thanks for your answer, but i must be blonder than i thought!! I copied and
pasted it, made sure it only goes an one line, but im still getting nothing
in the box - not even a zero.

How dumb am i being?

thanks again
Carol

"CLR" wrote:

Try this.......

=IF(OR(AND(Sheet1!A20<"",Sheet1!A16=""),Sheet1!A1 7=""),1,"")

Just change the Sheet1 to whatever sheet number you want the calculations
done for.

hth
Vaya con Dios,
Chuck, CABGx3



"englishrose4719" wrote:

How do I work this one out please?

IF 'A20' is not null AND 'A16' is null OR 'A17' is null then COUNT result in
'A14' on a different spreadsheet!!!!!

help me please ...........