Hello excel gurus, looking for a help to write a proper vba that runs formulas in different columns of spreadsheet anytime the concerned cell is triggered from row 2 down to the last row, since I will be removing, adding new rows.
So, if I enter value in T2, I want U2 to show the value derived from formula ‘=vlookup(T2, Sheet2!A:C,2)’. Once U2 has a value I want V2 to show calculation of ‘U2*10’. Then, once I enter value into W2, I want X2 to show the value derived from formula ‘=index match…’. Once X2 has a value I want Y2 to show calculation of ‘X2*10’.
And repeat this to the last row anytime I enter new row and new values into corresponding row and column.
Please see example, where yellow formulas to be hidden in VBA and run only when corresponding is triggered. Hope I'm clear enough Thanks for any advice
So, if I enter value in T2, I want U2 to show the value derived from formula ‘=vlookup(T2, Sheet2!A:C,2)’. Once U2 has a value I want V2 to show calculation of ‘U2*10’. Then, once I enter value into W2, I want X2 to show the value derived from formula ‘=index match…’. Once X2 has a value I want Y2 to show calculation of ‘X2*10’.
And repeat this to the last row anytime I enter new row and new values into corresponding row and column.
Please see example, where yellow formulas to be hidden in VBA and run only when corresponding is triggered. Hope I'm clear enough Thanks for any advice
Book1 | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | Name | Last name | address | code | function | position | role | grade | other info 1 | other info 2 | other info 3 | other info 4 | other info 5 | other info 6 | other info 7 | other info 8 | other info 9 | other info 10 | other info 11 | Manual value to be entered | bring me approx value | calculate | Manual value to be entered | bring me approx value | calculate | Manual value to be entered | calculate | ||
2 | John | Paul | home address | 1111 | Sales & marketing | sales | specialist | 44 | 5000 | =vlookup(T2, Sheet2!A:C,2)' | =U2*10' | 1000 | =INDEX(Sheet2!G:G,MATCH(1,(W2>=Sheet8!E:E)*(W2<=Sheet2!F:F),0)) | =X2*7' | 800 | =Z2*3' | |||||||||||||
3 | |||||||||||||||||||||||||||||
4 | |||||||||||||||||||||||||||||
5 | |||||||||||||||||||||||||||||
6 | |||||||||||||||||||||||||||||
7 | |||||||||||||||||||||||||||||
8 | |||||||||||||||||||||||||||||
Sheet1 |