Don't know how to write the formula?

jlawyer55

New Member
Joined
Sep 21, 2017
Messages
3
Here is what I need to do. in the example below I need Colum L (Velocity Code) to have a formula that if Colum K (Hit Count) has a number >250 it puts an "A" in the Velocity Code Colum. But if it is <250 but >100 it puts a "B", if it is <100 but > 50 it puts a "C", <50 but > 10 it puts a D and <10 it puts an "E".

Any help would be appreciated.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Are they whole numbers or are there decimal amounts?

If whole numbers, then:

=LOOKUP(K1,{0,11,51,101,251},{"E","D","C","B","A"})
 
Last edited:
Upvote 0
This is what the sheet looks like;


Business UnitShort Item NoSales CodeROPMfg. Code2nd Item NumberDescriptionDescription Line 2Primary LocationTotal QuantityHit CountVelocity Code
110021674372939HOS798303CSSodium Chloride 0.9% 500ml BGINJ 24/csK-0133971564
110022115311612733M3M9640Electrode Red Dot Adult LFHigh Tack Adhesive 50/bxH-14-A4522896
11002498316112287MY742130EADexamethasone 4mg/ml 30ml MDVD-226009150
1100249543111661HOS662902EAQuelicin 20mg/ml 10ml*Refrigerate*RF-221688802
1100249596711635WW600610EAAtropine Sulfate 0.4mg/ml 20mlMDVD-22196050
110021673572445HOS795303CSLactated Ringer 500ml BG INJ24/csK-031463634
1100249841211561APP061603EAAmiodarone 50mg/ml 3ml VLD-2221368
<colgroup><col width="90" style="width: 68pt; mso-width-source: userset; mso-width-alt: 3291;"> <col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"> <col width="74" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2706;"> <col width="64" style="width: 48pt;"> <col width="70" style="width: 53pt; mso-width-source: userset; mso-width-alt: 2560;"> <col width="117" style="width: 88pt; mso-width-source: userset; mso-width-alt: 4278;"> <col width="235" style="width: 176pt; mso-width-source: userset; mso-width-alt: 8594;"> <col width="232" style="width: 174pt; mso-width-source: userset; mso-width-alt: 8484;"> <col width="204" style="width: 153pt; mso-width-source: userset; mso-width-alt: 7460;"> <col width="123" style="width: 92pt; mso-width-source: userset; mso-width-alt: 4498;"> <col width="68" style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486;"> <col width="140" style="width: 105pt; mso-width-source: userset; mso-width-alt: 5120;"> <tbody> </tbody>
 
Upvote 0

Forum statistics

Threads
1,215,250
Messages
6,123,887
Members
449,131
Latest member
leobueno

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