Help writing formula based on text in another cell

zapfed

New Member
Joined
Oct 27, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Greetings! I know the subject sounds easy, and if it is, then I am an idiot. I hope this is easy for someone, but it's driving me batty. I'm trying to figure out how to write a formula to insert the billing rate into column B based on the final 6 characters in column A. For example, since A2 ends in "L2-2TG", B2 should be $45. Since A3 ends in "L3-2TG", B3 should be $125. Nothing I've tried has worked. Any ideas, please and thank you?
Billing CodeAnnual Bill Rate/Radiobill code ends withrate
X1000-L2-2TGL2-2TG
$45​
X4000-L3-2TGL2-3TG
$65​
X2000-L2-2TGL2-4TG
$85​
X2000-L2-4TGL3-2TG
$125​
X3000-L3-3TGL3-3TG
$145​
X1000-L2-3TG
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about in B2 and drag down
Excel Formula:
=VLOOKUP(RIGHT(A2,6),$D$2:$E$6,2,1)
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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