I am looking for a formula instead of VBA.
Main Topics
Browse All TopicsThe rules are fairly simple; if the 'Barge' contains the letters AGRI, then the 'Hull Size' should be 12. If the 'Barge' contains the letters KMM, then the 'Hull Size' should be 12; etc. etc.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You'll have to use nested if statements then:
http://pubs.logicalexpress
Hello MothballBugeater,
Do you mean Barge = AGRI, or do you mean Barge contains AGRI, etc?
If the former, then VLOOKUP is your ticket.
VLOOKUP is a handy function that allows you to return a value from a "lookup" table based on an "index"
value in the table's left-most column.
The URL below links to an excellent start-up tutorial for VLOOKUP:
http://www.theofficeexpert
Keep in mind the following:
1) If you omit the optional 4th argument, or set it to TRUE, then VLOOKUP looks for the greatest value in
the lookup column that is less than or equal to the value being sought. Your lookup table MUST BE SORTED
on the lookup column, ascending, or you may get an unexpected result.
2) If you use FALSE for the 4th argument, you are telling VLOOKUP to find an exact match. In this case, your
lookup table does not have to be sorted, but if there is no exact match, the function returns an #N/A error
To use VLOOKUP in your case, try the following:
1) On another worksheet, named Lookup, put in these values in A1:B3
Code Value
AGRI 12
KMM 12
Extend the list as needed
2) On your original worksheet, use a formula like this:
=VLOOKUP(A2,Lookup!A:B,2,F
Regards,
Patrick
Business Accounts
Answer for Membership
by: broomee9Posted on 2009-11-05 at 08:37:57ID: 25751226
Try this:
Select allOpen in new window