formula issue between cells

R

Ravens Fan

I have a issue with using a formula to look at another cell with a formula in
it and pulling the data correctly.

Column "L" has a formula (vlookup) pulling a cell over if it has a
particular symbol "HV".
Column "M" looks at "L" and if it equals 2 or 8 than it puts either of the
those numbers in "M" or leaves blank if it equals anything else.
Column "N" looks at "M" and pulls the data from column "J" if a 2 or 8 is in
"M".

My problem is Column "N" it seems, can't differentiate what is in column
"M". It seems it does not like the formula in "M".

Formulas being used:

Column
“Lâ€: =IF(ISNA(VLOOKUP($L$1,A2:H2,8,FALSE))=TRUE,"",VLOOKUP($L$1,A2:H2,8,FALSE))

Column “Mâ€: =IF(L2=2,"2",IF(L2=8,"8",""))

Column “Nâ€: =IF(M2=2,J2,IF(M2=8,J2,""))
 
P

Pete_UK

You should remove the quotes from around the numbers 2 and 8 in your
formula in M:

=IF(L2=2,2,IF(L2=8,8,""))

A slightly more efficient version would be:

=IF(OR(L2=2,L2=8),L2,"")

Hope this helps.

Pete
 
K

Kevin B

The formula in column M is putting a text value ("2" or "8") into the cell
and your formula in column N is looking for an integer, not a string.

Modify the formula in column N to this:

=IF(M2="2",J2,IF(M2="8",J2,""))
 
R

Ravens Fan

Thanks, worked great. I'm a novice at excel and am learning as I go.

Thanks again for both respones.
 
P

Pete_UK

You're welcome.

Presumably, Ravens is some sports club in Baltimore ? Along the lines
of Manchester United ?

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top