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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,215,418
Messages
6,124,793
Members
449,189
Latest member
kristinh

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