Hi ,
So I created an automated summary sheet which extracts data from multiple sheets and puts it in one workbook. I need to do conditional formatting on the data in summary sheet based on certain parameters
[table="width: 500, align: left"]
[tr]
[td]Base[/td]
[td]Upper[/td]
[td]Lower[/td]
[td]PROD A[/td]
[td]PROD B[/td]
[td]PROD C[/td]
[td]PROD D[/td]
[td]PROD E[/td]
[/tr]
[tr]
[td]2[/td]
[td]4[/td]
[td]5[/td]
[td]6.1[/td]
[td]6.3[/td]
[td]7.1[/td]
[td]7.4[/td]
[td]7.5[/td]
[/tr]
[/table]
The above table shows the basic structure. As it is an automated machine each time the rows and columns will change depending on the number of files from where we take data.
What I need to do :-
Formulae1 = Base + Upper
Formula 2 = Base - Lower
I need to check in a row if the value lies between the two formula ie if Base+ upper > PROD A > Base - lower
If it does it needs to be marked with red.
We have to check for all the products and there are multiple rows with different Base , upper and lower value.
Please help. I need to write a VBA code for this.
So I created an automated summary sheet which extracts data from multiple sheets and puts it in one workbook. I need to do conditional formatting on the data in summary sheet based on certain parameters
[table="width: 500, align: left"]
[tr]
[td]Base[/td]
[td]Upper[/td]
[td]Lower[/td]
[td]PROD A[/td]
[td]PROD B[/td]
[td]PROD C[/td]
[td]PROD D[/td]
[td]PROD E[/td]
[/tr]
[tr]
[td]2[/td]
[td]4[/td]
[td]5[/td]
[td]6.1[/td]
[td]6.3[/td]
[td]7.1[/td]
[td]7.4[/td]
[td]7.5[/td]
[/tr]
[/table]
The above table shows the basic structure. As it is an automated machine each time the rows and columns will change depending on the number of files from where we take data.
What I need to do :-
Formulae1 = Base + Upper
Formula 2 = Base - Lower
I need to check in a row if the value lies between the two formula ie if Base+ upper > PROD A > Base - lower
If it does it needs to be marked with red.
We have to check for all the products and there are multiple rows with different Base , upper and lower value.
Please help. I need to write a VBA code for this.