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

tommiexboi

New Member
Joined
Apr 24, 2017
Messages
20
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!
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Watch MrExcel Video

Forum statistics

Threads
1,090,244
Messages
5,413,282
Members
403,472
Latest member
ArtisticOwl

This Week's Hot Topics

Top