Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default 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?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default 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





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Help with code please?

try

=if(a3=sheet1!$a$4,"yes","")
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Help with code please?

sorry it meant

if(a3=sheet1!$a$3,"yes","")
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default 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","")



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
split post code (zip code) out of cell that includes full address Concord Excel Discussion (Misc queries) 4 October 15th 09 06:59 PM
Code to conditional format all black after date specified in code? wx4usa Excel Discussion (Misc queries) 3 December 26th 08 07:06 PM
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
stubborn Excel crash when editing code with code, one solution Brian Murphy Excel Programming 0 February 20th 05 05:56 AM
VBA code delete code but ask for password and unlock VBA protection WashoeJeff Excel Programming 0 January 27th 04 07:07 AM


All times are GMT +1. The time now is 03:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"