Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Find 1st occurence of value in Range 1 in Range 2

Hi

XL2K.

I have a dynamic range of numbers (Sheet 2 in Col F commencing at Row
12).

I also have a dynamic master list of numbers containing many
duplicates (Sheet 1 in Col B commencing at Row 2).

What I would like to do is look at each number in the range on Sheet
2, find the first occurence in the range on Sheet 1 and place the
number 1 in the adjacent cell in Col A. Any further matches of that
number are to be ignored.

Also, the numbers in the range in Sheet 2 will always be in the range
in Sheet 1.

Would someone be kind enough to assist.

Cheers

Bob

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Find 1st occurence of value in Range 1 in Range 2

in sheet1, A2 put in the formula
=if(countif($A$1:A1,B2)=0,1,"")
then drag fill down the column.

You said all numbers in Sheet1 would be found in Sheet2, but on the chance
they would not

=if(countif(Sheet2!$F:$F,A2)=0,"",if(countif($A$1: A1,B2)=0,1,""))

--
Regards,
Tom Ogilvy



"Ozbobeee" wrote in message
...
Hi

XL2K.

I have a dynamic range of numbers (Sheet 2 in Col F commencing at Row
12).

I also have a dynamic master list of numbers containing many
duplicates (Sheet 1 in Col B commencing at Row 2).

What I would like to do is look at each number in the range on Sheet
2, find the first occurence in the range on Sheet 1 and place the
number 1 in the adjacent cell in Col A. Any further matches of that
number are to be ignored.

Also, the numbers in the range in Sheet 2 will always be in the range
in Sheet 1.

Would someone be kind enough to assist.

Cheers

Bob



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
Find Last cell in Range when range is date format default105 Excel Discussion (Misc queries) 5 July 7th 09 03:11 PM
Find Last Occurence in a Range with VBA jlclyde Excel Discussion (Misc queries) 2 October 1st 08 07:04 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
I need to count the occurence of text in a range of cells (which . Brenda Excel Worksheet Functions 1 December 12th 04 09:00 PM
Range.Find returns cell outside of range when range set to single cell Frank Jones Excel Programming 12 June 10th 04 04:22 AM


All times are GMT +1. The time now is 02:55 AM.

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

About Us

"It's about Microsoft Excel"