If Statement Formula with 1st Character as the determining factor

easydawg98

New Member
Joined
Feb 22, 2013
Messages
13
i need a formula to assign a person to an assignment depending on the first letter of the customer's last name

Ticket # Customer Name Employee Assignment
123 Doe, Jon
124 Smith, Robert


Above is a simple version, but employee "Bob" will take assignments where Customer Last names begin with A-L while Allison will take assignments where the Customer Last name begins with M-Z

Any help is appreciated.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
maybe something like...

=IF(OR(LEFT(B2,1)={"A","B","C","D","E","F","G","H","I","J","K","L"}),"BoB","Allison")
 
Upvote 0
Hi,

Here's a simpler way:


Book1
ABCD
1Ticket #Customer NameEmployee
2123Doe, JonBob
3124Smith, RobertAllison
Sheet32
Cell Formulas
RangeFormula
D2=IF(CODE(B2)<77,"Bob","Allison")
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,974
Members
449,095
Latest member
Mr Hughes

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