Autofilltering and applying formula in other column

mogss_04

Board Regular
Joined
May 9, 2019
Messages
57
Hi All,

I have three columns. Column A - ID , Column B - Price and Column C = Variation In Price.

I need to first filter column A for one ID, then apply the formula in the second visible cell in Column C not counting the header - =IF(1-(B3/$B$2)=0,"OK",-1*(1-(B3/$B$2))) and drag this formula across all visible cells for all the duplicate IDs.

I need to do this for every ID. currently it is happening this way. How can we automate this procedure.Can Somebody please guide me on below



Material CodeUnit Price in FCVaraition in Base Price
00000000000100039245.77
00000000000100039245.77=IF(1-(B3/$B$2)=0,"OK",-1*(1-(B3/$B$2)))
00000000000100039245.77=IF(1-(B4/$B$2)=0,"OK",-1*(1-(B4/$B$2)))
00000000000100039245.77=IF(1-(B5/$B$2)=0,"OK",-1*(1-(B5/$B$2)))
00000000000100039245.77=IF(1-(B6/$B$2)=0,"OK",-1*(1-(B6/$B$2)))
00000000000100039245.77=IF(1-(B7/$B$2)=0,"OK",-1*(1-(B7/$B$2)))
00000000000100039245.77=IF(1-(B8/$B$2)=0,"OK",-1*(1-(B8/$B$2)))
00000000000100039245.77=IF(1-(B9/$B$2)=0,"OK",-1*(1-(B9/$B$2)))
00000000000100039310.16
00000000000100039310.16=IF(1-(B11/$B$10)=0,"OK",-1*(1-(B11/$B$10)))
00000000000100039310.16=IF(1-(B12/$B$10)=0,"OK",-1*(1-(B12/$B$10)))
00000000000100039310.58=IF(1-(B13/$B$10)=0,"OK",-1*(1-(B13/$B$10)))

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Thank you

<tbody>
</tbody>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,826
Messages
6,121,792
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top