Need Help with Macro Button to add 1 to cell based on dropdowns (Row/Column)

leighton367

New Member
Joined
Jan 28, 2015
Messages
2
I am having trouble with a macro button, that links to two drop-down boxes. My main sheet (YYD), has two drop-down boxes that reference my other sheet (Data). The first drop-down in YYD!F12 selects a row and the second drop-down in YYD!F17 selects the column on my 'Data' Sheet. I just need a macro that when I click a button, I have created, it references the two drop downs for row/column and adds +1 to that cell on my data sheet.

I have made the Lookup formula for the sheet 'YYD' so the user can see the value currently in the cell select by the 2 drop-downs, but haven't came up with any ideas on where to start with the macro.

Lookup Formula for Drop-downs -
=VLOOKUP(YYD!F12,Data!A2:E95,((IF(YYD!F17=Data!B1,2,1))*(IF(YYD!F17=Data!C1,3,1))*(IF(YYD!F17=Data!D1,4,1))*(IF(YYD!F17=Data!E1,5,1))),FALSE)

If any one could help me put together a macro that would work for this, Any help would be much appreciated.

Or if you need more info, or have any question I would be glad to help.

Thank you.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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