Skip to main content
Solved

Conditional Formatting GI


Forum|alt.badge.img

I have a IFF here that is working for formatting the cell in yellow

=IIf( [POOrder.Status] = 'N', IIf( [POLine.PromisedDate] < Today(), 'yellow40', 'default'), 'default')

 

What I want is to highlight the cells that are +14 days from today.

Like you can in a filter @Today+14

 

Thanks

 

Best answer by Naveen Boga

Hi @john25  You can use below formula. I just verified it and working as expected.

Formula

=IIf( [POOrder.Status] = 'N', IIf( DateDiff( 'd', [POLine.PromisedDate] , Today())  < 14 , 'yellow40', 'default'), 'default')

 

 

View original
Did this topic help you find an answer to your question?

6 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • June 17, 2022

Hi @john25  You wanted to highlight the cells where the PromisedDate > 14 days from today?


Forum|alt.badge.img
  • Author
  • Freshman I
  • 14 replies
  • June 17, 2022

Naveen, that is correct.


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 866 replies
  • June 17, 2022

Hi @john25 

Try using DateDiff function. Here is thread that has an example.

Hope this helps. 
Regards,

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • Answer
  • June 17, 2022

Hi @john25  You can use below formula. I just verified it and working as expected.

Formula

=IIf( [POOrder.Status] = 'N', IIf( DateDiff( 'd', [POLine.PromisedDate] , Today())  < 14 , 'yellow40', 'default'), 'default')

 

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • 14 replies
  • June 17, 2022

@Naveen Boga  could you please also include to highlight the dates less then @today?

Thanks

John

 


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3393 replies
  • June 17, 2022

Hi @john25  Try like below it may work (I have not tested it)

 

=IIf( [POOrder.Status] = 'N', IIf(   [POLine.PromisedDate]  < Today() , 'yellow40', 'default'), 'default')


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings