Dear Community,
I am trying to retrieve the information of one cell depending on several criteria:
- Match week number from a date with Week Column to retrieve the payment amount
- Prioritize between 2 dates (though between 2 week numbers) which one will be retrieved (Actual Payment Week will have priority over Expected Payment Week), However these 2 weeks are often not the same, so I need to create IF conditions.
Here is my Formula which returns #INCORRECT ARGUMENT SET:
=IF($[Actual Payment Week]@row = [2019 Wk 01]$2, $[Exact Amount Received]@row, IF(AND(NOT(ISBLANK($[Actual Payment Week]@row)), ($[Expected Payment Week]@row = [2019 Wk 01]$2), "", IF($[Expected Payment Week]@row = [2019 Wk 01]$2), $[Invoice Value]@row, "")))
Here is the boolean logic I am willing to express in my formula:
__________________________________________________
IF :
$[Actual Payment Week]@row = (Wk01)$2
IF TRUE RETURN : $[Exact Amount Received]@row
IF FALSE RETURN : IF :
$[Actual Payment Received]@row IS NOT BLANK
AND
$[Expected Payment Week]@row = [2019 Wk01]$2
IF TRUE RETURN : BLANK (“”)
IF FALSE RETURN : IF :
$[Expected Payment Week]@row = [2019 Wk01]$2
IF TRUE RETURN : $[Invoice Value]@row
IF FALSE RETURN : BLANK (“”)
__________________________________________________
I have been turning around for quite a while but I can't see the mistake..
If you have any suggestions or directions to recommend, I would be glad to have your feedback.
Thx a lot !
Michaël
