highlight minus values and copy to another sheet

Hasson

Active Member
Joined
Apr 8, 2021
Messages
406
Office Version
  1. 2016
Platform
  1. Windows
hello !
I would search for the minus values into column STOCK , then should highlighted by red into sheet RP and copy the data contain highlighted minus values to sheet OUTPUT with considering every time it will increase data or changes in sheet RP
the data before
RESULT.xlsm
ABCDEFG
1ITEMBRANDMANFREFBUYINGsellingstock
21QQW-1 MM CLA1 23M-1 200210-10
32QQW-2 TH NM-1 CLA2 VBG 12010020
43QQW-3 CV CLA3TAI20020180
54QQW-4 M*12.5CLA4 TR300120180
65QQW-5 CLA5EG120150-30
76QQW-6 M230TU200210-10
87QQW-7 S**CLA7 US250100150
98QQW-8 CLA8UK300300
109QQW-9 CLA9N BR120120
1110QQW-10 BN CLA10 IT150150
1211QQW-10 CLA10 ITBN -MM100100
1312QQW-11 LVDCH120120
1413QQW-12 CLA12JA120120
RP
Cell Formulas
RangeFormula
G2:G14G2=E2-F2



and after for two sheets
sheet RP
1.PNG

sheet OUTPUT
2.PNG
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
hello !
I would search for the minus values into column STOCK , then should highlighted by red into sheet RP and copy the data contain highlighted minus values to sheet OUTPUT with considering every time it will increase data or changes in sheet RP
the data before
Excel Formula:
Sub ABC()
Dim Rng As Range
With Sheets("PR")
    Set Rng = .Range("A1").CurrentRegion
    Rng.AutoFilter 7, "<0"
    Rng.Copy Sheets("OUTPUT").Range("A1")
End With
End Sub
 
Upvote 0
thanks but as I said
every time it will increase data or changes in sheet RP
then should change in sheet OUTPUT . so if the data contain minus values change to non minus then should be delete from sheet OUTPUT if it's already existed in sheet OUTPUT and if I add new data contain minus then should copy to sheet OUTPUT. as to using way of filter I know this is better way than the others ,but I would show all of data in sheet RP after copy filtered data into sheet OUTPUT without show filtering arrow ,also where is the highlighted minus values into sheet RP? last thing you have typo about sheet name RP not PR.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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