Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find Last cell in Range when range is date format | Excel Discussion (Misc queries) | |||
Find Last Occurence in a Range with VBA | Excel Discussion (Misc queries) | |||
Find dates in a range; then sum values in that range by a criteria | Excel Discussion (Misc queries) | |||
I need to count the occurence of text in a range of cells (which . | Excel Worksheet Functions | |||
Range.Find returns cell outside of range when range set to single cell | Excel Programming |