VBA format cell based on vaslue in another cells

Access Beginner

Active Member
Joined
Nov 8, 2010
Messages
311
Office Version
  1. 2016
Platform
  1. Windows
Hello All,

I'm using an index and match (in cell G8 on the ISS_Charts sheet) to return the value based off cells in C1 and D3, copied down and accross so next match will be for C2 and D4 and so on.

My issue is that depending on what is in C1..C15 the number fromat will change. As an example the value in C1 could be T1.1 and the format should be a percentage. However based on a selection (drop down list), the value of C1
could be T1.2 and the format of this should be currency.
Below is a table of the values and the formats I'd like applied.



T1.1 - Percentage
T1.2 - Percentage
T1.3 - Percentage
T1.4 - Currency
T1.5 - Percentage
T2.1 - Number (no decimals)
T2.2 - Number (no decimals)
T2.3 - Number (no decimals)
T2.4 - Percentage
T2.5 - Percentage
T2.6 - Currency
T3.1 - Currency
T3.2 - Percentage
T3.3 - Percentage
T3.4 - Percentage
T3.5 - Number (no decimals)
T3.6 - Percentage

Any help is appreciated.
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,224,823
Messages
6,181,179
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top