Need a VBA Macro based solution to my excel spreadsheet

Siddhu11011

Board Regular
Joined
Jun 22, 2022
Messages
56
Office Version
  1. 365
Platform
  1. Windows
Hello There...
Need a VBA code to get the result. Please check the below conditions:

1. Column C = Blank & column D > 100,00
2. Column D = Blank & column C > 50,000
3. Column F < -95 & Sort column D in descending order ( Largest to smallest)
Now select first 25 records
4. Column G > 1,000,000 & column H >= 4
5. Column H should be greater than 1,000 but lesser than 10,000 & column G > 100,000

My spread sheet contains only numeric value. I just need to put "Yes" in column M based on above conditions in sequence wise.

Ex. Take 1st condition.... Based on that I just want "Yes" value in column M. Now remove filter and pick 2nd condition. Base on available result, just put "Yes" in column M. Likewise, use all above 5 conditions and at the end just apply filter on column M and show me "Yes" output only.

Let me know if you need further explanation and thank you for reading my query.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,214,976
Messages
6,122,539
Members
449,088
Latest member
RandomExceller01

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