Forum Discussion

Edg38426's avatar
Edg38426
Brass Contributor
Nov 09, 2021
Solved

IF/AND Formula Not Working

I am trying to formulate a column that will return a DAYS formula result if multiple conditions are met, or a blank cell if they are not. Whatever I do, though, is returning a blank value. 

 

The formula that I am using in Column K is

=IF(AND([@[Puchasing Agent]]="<>",[@GL]="0"),DAYS(TODAY(),[@[P.O. Release]]),"") 

 

I should receive a numerical value if true, or a blank return if false. All I am getting is false values though. What am I doing wrong? Does it matter that the @GL column is a formula rather than a number? If so, I haven't had this issue when using similar calculations. 

 

 

6 Replies

    • Edg38426's avatar
      Edg38426
      Brass Contributor
      My intent here is this: If there is data in the Purchasing Agent field (meaning that it has been assigned to said agent) AND there is not a GL entry yet (currently being calculated using a COUNTIF formula which references another worksheet in this same workbook), then I need to be able to see the number of days that have passed since the Agent has released the job (days from P.O. Release field). Is there perhaps an easier way to do this?
    • Edg38426's avatar
      Edg38426
      Brass Contributor
      Thank you for replying. I just tried changing it per your suggestion, but it did not affect the return value.

Resources