IF AND CONTAINS Formula that Returns Value

onlyonekj

New Member
Joined
Jun 27, 2019
Messages
18
I am fairly new with formulas and really could use some assistance. I am trying to create a formula that will look for a certain word in cell A8 (RELEVANT or RELATED) as well as look at the value in cell F8 (the value of a number) to return a certain value in cell G8. I have a Data Validation List in cell A8 and once a selection is made I want the formula to look for the word RELEVANT or RELATED and also look in cell F8 at the number and return a certain value (pts that are listed in the Data Validation List) for the selection made in A8.

Data Validation List is:
None= 0 pts
RELEVANT: 6+ yrs= 35 pts
RELEVANT: 4-5 yrs= 28 pts
RELEVANT: 2-3 yrs= 17 pts
RELEVANT: <2 yrs>1 yr= 8 pts
RELATED: 6+ yrs= 8 pts
RELATED: 4-5 yrs= 6 pts
RELATED: 2-3 yrs= 4 pts
RELATED: <2 yrs>1 yr= 2 pts

The formula I tried that is not working:

Formula:
=IF(ISNUMBER(SEARCH("RELEVANT",A8,AND(F8=<6,35,0))))

Of course this returns an error: "There's a problem with this formula. Not trying to type a formula? When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula: ...."
Thanks.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Maybe:

=LOOKUP(F8,{0,1,2,4,6},COUNTIF(A8,"*relevant*")*{0,8,17,28,35}+COUNTIF(A8,"*related*")*{0,2,4,6,8})
 
Upvote 0
Solution

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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