VBA: List Row in Separate Sheet if multiple criteria's are met and more! Need help!

tommiexboi

New Member
Joined
Apr 24, 2017
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hello!

Any guidance and help will be GREATLY appreciated!
I have written out what I need (with examples) to give you a clear picture on what I'm trying to accomplish. I hope it helps.

Scenario
I have a "revenue forecast" sheet that shows Customer, Item, Quantity and Average Selling Price (ASP) by Month. If the user enter's a Quantity they must enter a Price for each month. However due to the sheer amount of items the user might accidentally forget to enter the ASP which can alter the forecast drastically.

Example:
"Revenue Forecast"
QTYASP
CustomerItem NumberOct_17Nov_17Dec_17Jan_18Oct_17Nov_17Dec_17Jan_18
CatToy13,0003,0002,8003,000$0.00$0.00$0.00$1.00
CatToy27,0007,0004,7006,000$2.00$2.00$2.00$2.00
CatToy31,200750800750$3.00$3.00$3.00$3.00
CatToy42,0002,0001,0001,500$4.00$4.00$0.00$0.00

<colgroup><col><col><col><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>


Goal
1) I want to create a separate sheet called "ASP Validate" where in this sheet the user will click a button and a macro will loop and list out the Customer, Item, and Month in which the user forgot to enter the ASP where there is a QTY for each month (The amount of rows will vary).

Example:
"ASP Validate"
ASP
CustomerItem NumberOct_17Nov_17Dec_17Jan_18
CatToy1$0.00$0.00$0.00$1.00
CatToy4$4.00$4.00$0.00$0.00

<colgroup><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>

2) I also want the user to enter the ASP into the "ASP Validate" sheet and click a button and the missing ASP will be entered into the "revenue forecast" sheet.

Example:
"ASP Validate"
ASP
CustomerItem NumberOct_17Nov_17Dec_17Jan_18
CatToy1$1.00$1.00$1.00$1.00
CatToy4$4.00$4.00$0.00$0.00

<colgroup><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>

**Click Button**

"Revenue Forecast"
QTYASP
CustomerItem NumberOct_17Nov_17Dec_17Jan_18Oct_17Nov_17Dec_17Jan_18
CatToy13,0003,0002,8003,000$1.00$1.00$1.00$1.00
CatToy27,0007,0004,7006,000$2.00$2.00$2.00$2.00
CatToy31,200750800750$3.00$3.00$3.00$3.00
CatToy42,0002,0001,0001,500$4.00$4.00$0.00$0.00

<colgroup><col><col><col><col span="2"><col><col span="4"></colgroup><tbody>
</tbody>


3) Once, they click a button that line will disappear from the row

Example:
"ASP Validate:
ASP
CustomerItem NumberOct_17Nov_17Dec_17Jan_18
CatToy4$4.00$4.00$0.00$0.00

<colgroup><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>



The amount of rows will vary and will get larger over time. I'm trying to make this as user friendly as possible.

Any help will be greatly appreciated!!

Thank you!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,213,513
Messages
6,114,064
Members
448,545
Latest member
kj9

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