nwsportsreport25
New Member
- Joined
- Mar 30, 2009
- Messages
- 2
Hey all,
Is there a way to change the number format of a cell using an if statement. For example, if I am creating a drop-down menu that includes two metrics in two different number formats, is there a way to toggle between the number formats within the same cell depending on the category I use in the drop-down? Is there an alternate formula I can use? Since I am not proficient with VBA, I am trying to stay away from this for now.
i.e.
Cell B1 is variable:
Drop Down Menu:
1 - Net Sales
2 - % of Sales
A1: West Region
B1: Net Sales: $30,000
B2: % of Total Sales: 25%
If I select 1 - Net Sales, it will populate with 30,000, keeping A1 West Region fixed. If I select 2 - % of Sales, it will populate with 25%, keeping A1 West Region fixed. However, currently, the 25% defaults to the same number format I am using for 1 - Net Sales, so it populates as $0.
Does anyone know if a quick, simple formula to toggle between two different number formats?
Thanks
Is there a way to change the number format of a cell using an if statement. For example, if I am creating a drop-down menu that includes two metrics in two different number formats, is there a way to toggle between the number formats within the same cell depending on the category I use in the drop-down? Is there an alternate formula I can use? Since I am not proficient with VBA, I am trying to stay away from this for now.
i.e.
Cell B1 is variable:
Drop Down Menu:
1 - Net Sales
2 - % of Sales
A1: West Region
B1: Net Sales: $30,000
B2: % of Total Sales: 25%
If I select 1 - Net Sales, it will populate with 30,000, keeping A1 West Region fixed. If I select 2 - % of Sales, it will populate with 25%, keeping A1 West Region fixed. However, currently, the 25% defaults to the same number format I am using for 1 - Net Sales, so it populates as $0.
Does anyone know if a quick, simple formula to toggle between two different number formats?
Thanks