ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with code please? (https://www.excelbanter.com/excel-programming/330732-help-code-please.html)

Greg B[_5_]

Help with code please?
 
I am looking for an easier way to do this? I want to have column "f" lookup
cell "a1" on sheet 2 and if it matches say yes or if it doesnt to remain
blank.

How do I do this?

Thanks

Greg



Gixxer_J_97[_2_]

Help with code please?
 
if i understand correctly you'll need a 2nd column,

=if($f1=Sheet2!$A$1,"Yes","")

if you want to match what is in column F to Sheet2 A1

if you want to have Column F say Yes or be blank, using this formula will
create a circular reference.

J

"Greg B" wrote:

I am looking for an easier way to do this? I want to have column "f" lookup
cell "a1" on sheet 2 and if it matches say yes or if it doesnt to remain
blank.

How do I do this?

Thanks

Greg




Damien McBain[_2_]

Help with code please?
 
"Greg B" wrote in message
...
I am looking for an easier way to do this? I want to have column "f" lookup
cell "a1" on sheet 2 and if it matches say yes or if it doesnt to remain
blank.

How do I do this?


What do you want to compare to the value in a1? You want column f to return
yes or no, does an adjacent column contain values you want to compare?



Don Guillett[_4_]

Help with code please?
 
How are you doing it now?

--
Don Guillett
SalesAid Software

"Greg B" wrote in message
...
I am looking for an easier way to do this? I want to have column "f"

lookup
cell "a1" on sheet 2 and if it matches say yes or if it doesnt to remain
blank.

How do I do this?

Thanks

Greg





Greg B[_5_]

Help with code please?
 
Sorry I never explained it very clear at all.

I am using the if function which works well,

=if(a2=sheet1!a3,"yes","")

but when i copy and paste it becomes

=if(a3=sheet1!a4,"yes","")

How do I get the Sheet1 value to stay static?

Hope that it easier to understand.

Thanks

Greg




Ashley Milford via OfficeKB.com[_2_]

Help with code please?
 
try

=if(a3=sheet1!$a$4,"yes","")

Ashley Milford via OfficeKB.com[_2_]

Help with code please?
 
sorry it meant

if(a3=sheet1!$a$3,"yes","")

Greg B[_5_]

Help with code please?
 
Thanks for that

Greg
"Ashley Milford via OfficeKB.com" wrote in message
...
sorry it meant

if(a3=sheet1!$a$3,"yes","")





All times are GMT +1. The time now is 12:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com