chandlerlandrum
New Member
- Joined
- Nov 11, 2019
- Messages
- 1
Hello all,
I'm trying to figure out how to VLOOPUP a custum number rounding function based on the type of pollutant.
For example...(these emission rates are made up for the purpose of the example)
Avg (lb/hr) Max (lb/hr) Annual (tpy)
Pollutant A 0.11115 0.11115 0.11115
Pollutant B 0.11115 0.11115 0.11115
Pollutant A lb/hr must be rounded as custom number format: [<0.0005]"<0.001";[<0.005]0.000;#,##0.00
Pollutant A tpy must be rounded as custom number format: [<0.005]"<0.01";#,##0.00
Pollutant B lb/hr and tpy must be rounded as [<0.0005]"<0.001";#,##0.000
So I have created a table just like the one above, but it is blank and has only the proper custom number formats in each cell. Is there a way I can use the IF function and VLOOKUP to lookup a custom number rounding function from my "blank" table and apply it to the table above.
The idea is that the user can input any value for Pollutant A or B and it will automatically use the proper rounding rules based on the pollutant. I need to use VLOOKUP because this is going to be used for over 30 different pollutants with different rounding rules.
I'm trying to figure out how to VLOOPUP a custum number rounding function based on the type of pollutant.
For example...(these emission rates are made up for the purpose of the example)
Avg (lb/hr) Max (lb/hr) Annual (tpy)
Pollutant A 0.11115 0.11115 0.11115
Pollutant B 0.11115 0.11115 0.11115
Pollutant A lb/hr must be rounded as custom number format: [<0.0005]"<0.001";[<0.005]0.000;#,##0.00
Pollutant A tpy must be rounded as custom number format: [<0.005]"<0.01";#,##0.00
Pollutant B lb/hr and tpy must be rounded as [<0.0005]"<0.001";#,##0.000
So I have created a table just like the one above, but it is blank and has only the proper custom number formats in each cell. Is there a way I can use the IF function and VLOOKUP to lookup a custom number rounding function from my "blank" table and apply it to the table above.
The idea is that the user can input any value for Pollutant A or B and it will automatically use the proper rounding rules based on the pollutant. I need to use VLOOKUP because this is going to be used for over 30 different pollutants with different rounding rules.