Help with changing a formula

J

JBoyer

The current formula I have is...
=IF(COUNTBLANK(INDEX(F:L,ROW(),))<COUNTBLANK(INDEX(F:L,ROW()+1,)),"PENDING
CREDITS","")

I want to make one addition to this formula. Before it does my current
formula I want it to check if any cells in F:L,ROW() are <0, if they are i
want it to be blank, if not then I want it to perform my current formula.

THANKS IN ADVANCE!
 
C

Corey

=IF(INDEX(F:L,ROW()>=0),IF(COUNTBLANK(INDEX(F:L,ROW(),))<COUNTBLANK(INDEX(F:L,ROW()+1,)),"PENDING
CREDITS",""))
 
J

JBoyer

That formula didnt seem to work for me...

Corey said:
=IF(INDEX(F:L,ROW()>=0),IF(COUNTBLANK(INDEX(F:L,ROW(),))<COUNTBLANK(INDEX(F:L,ROW()+1,)),"PENDING
CREDITS",""))
 
R

Rick Rothstein \(MVP - VB\)

Does this do what you want?

=IF(COUNTIF(F:L,"<0")>0,"",IF(COUNTBLANK(INDEX(F:L,ROW(),))<COUNTBLANK(INDEX(F:L,ROW()+1,)),"PENDING
CREDITS",""))

Rick
 
J

JBoyer

Yes, Perfect! Thanks

Rick Rothstein (MVP - VB) said:
Does this do what you want?

=IF(COUNTIF(F:L,"<0")>0,"",IF(COUNTBLANK(INDEX(F:L,ROW(),))<COUNTBLANK(INDEX(F:L,ROW()+1,)),"PENDING
CREDITS",""))

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top