Jun 08 2023 02:43 AM
Is there any easy way I can copy IF statement formula to rows and columns both. I have to change the reference for every row to drag it to corresponding columns. I am enclosing the screenshot as an example
Jun 08 2023 02:53 AM
Hi @max342ss
Looking at the image I understand you are trying to reference a formula on PivotTable,
this blog might be helpful for your query
How to remove GETPIVOTDATA in Excel for Mac and Windows
Regards, Faraz Shaikh | Microsoft MVP, MCT, MIE, MOS Master, Excel Expert
If you find the above solution resolved your query don't forget to mark it as Official/Best Answer to help the other members find it more
Jun 08 2023 03:09 AM
Jun 08 2023 03:36 AM
Jun 08 2023 03:38 AM - edited Jun 08 2023 03:41 AM
Try this:
=IF(AND(E$3>=$C4,E$3<=$D4,"1",0")
This will do what you ask for.
But perhaps better to use:
=--AND(E$3>=$C4,E$3<=$D4)
Jun 08 2023 07:18 AM
If numbers, not texts, I'd simplify to =(E$3>=$C4)*(E$3<=$D4)