• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Excel Macros Question

minendo

Elite Member
Anybody know how to set up the following situation? I've got 12 categories that all data will fall into. What I need the macro to do is run through a set of If statements to decide what each category is. Column C has the inputted data (heights in my case) and column D will place the heights into one of the 12 categories. Anybody have any ideas?
 
You could use VLOOKUP...

You would need to setup a table somewhere in the worksheet, or on another worksheet in the same workbook that listed in one column the min height in each category, and in the next column the name of that category.

Then use the VLOOKUP(Col C,Table_Range,2) in Col D

- TK

 
Back
Top