Help with VBA code to assigning value a colour and letter based on certain conditions

jaspermowatt

New Member
Joined
Apr 7, 2018
Messages
10
Hello All,

I am new to the world of using VBA and I am looking to get some help in writing a code that follows a set of conditions and applied it to a data base.
I would really appreciate it if someone could assist me learning how to write the task rather than a straight up answer example.

Basically, I have say 10 objects that I have measured 3 variables for, these variables are A, B, and C. I would like automate a process where by for each object, a set of conditions are applied and depending on the outcome, I'd like to colour the objects cell id (1-10) but also add another column and assist a letter to each object based on the outcome.

The database would look like this:
Screen%20Shot%202018-04-07%20at%209.20.23%20AM.png
[/URL][/IMG]

and the conditional flow chat looks like this:
Screen%20Shot%202018-04-07%20at%209.23.18%20AM.png
[/URL][/IMG]

So in word form:

Screen%20Shot%202018-04-07%20at%209.24.20%20AM.png
[/URL][/IMG]

I imagine I will be required to use If, Else statements but I am not really sure how.

Any help would be greatly appreciated,

Many thanks,

Jasper
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,215,400
Messages
6,124,702
Members
449,180
Latest member
craigus51286

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