Help with spread sheet please.

steiny0831

New Member
Joined
Oct 18, 2013
Messages
34
Hi there,

Am running into a problem with a spread sheet I am working on.

I attached a link to a test page I am working on.

What I need it to do is -

If cell A2 is equal to any word in the range of G1:G4 and B2 is 11 then I need it to return "yes" in C2, if not it needs to return the value of B2 in cell C2.

I cant get it to work in trying a range of cells in G1:G4, it will only work if I have the word color itself in the formula. But need it to work in a range of cells.

Below is a shared sheet with the top not working and bottom working but only by word color in formula.

Not sure if this makes sense.

https://docs.google.com/spreadsheets/d/1abFq3aAR2UoF9Vd0akuEFcafFINDwvXAK_dZmkV_1Gw/edit?usp=sharing

Thank you for any help!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
=IF(AND(ISNUMBER(MATCH(A2,G$1:G$4,0)),B2="11"),"Yes",B2)
 
Upvote 0
Hi,

Your Column B numbers are stored as Text in your sample, so my formula looks for the Text 11 (eleven), if you convert Column B Text numbers to Real Numbers, remove the Quote marks around 11 in my formula:


Book1
ABCDEFG
1Colorsizeresultred
2red11Yesorange
3black1515black
4white1111green
Sheet353
Cell Formulas
RangeFormula
C2=IF(AND(COUNTIF(G$1:G$4,A2),B2="11"),"Yes",B2)
 
Upvote 0
Did you try my formula also??
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,872
Messages
6,122,025
Members
449,060
Latest member
LinusJE

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