kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
I have 3 sheets that I am using Vlookup formula to pull data from based on a condition in a cell; A2 on Sheet4.
And the conditions are A, B, C.
If A, then I am looking up the value in B2 on Sheet4 from sheet1 range A2:D30 . If B then same value in B2 Sheet4 but now on sheet2 in that order. I have the formula running. Now I am thinking of a way to use a user defined function for the formula.
That is store the formula inside the udf and call it when I need it instead of having the formula always in the workbook.
I am only looking for the udf- I can do the calling.
I am trying to find a way to avoid too many formulas .
If there is a cooler way to get this done, I will want to know. Thanks.
And the conditions are A, B, C.
If A, then I am looking up the value in B2 on Sheet4 from sheet1 range A2:D30 . If B then same value in B2 Sheet4 but now on sheet2 in that order. I have the formula running. Now I am thinking of a way to use a user defined function for the formula.
That is store the formula inside the udf and call it when I need it instead of having the formula always in the workbook.
I am only looking for the udf- I can do the calling.
I am trying to find a way to avoid too many formulas .
If there is a cooler way to get this done, I will want to know. Thanks.