Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Search for cell value

Is it possibly to look at cell value and if in a range to place the record #
in a cell ?

E.g.
Value in A2 that I need to know if in a range "R1234JK-3"

RANGE
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9

Ce;; Value returned in A3 "1" which stands for record 1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default Search for cell value

I have interpreted this as follows;
You have data such as
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9
.....
I will assume this is in Sheet1 in cells A1:D100
On Sheet2 in cell A2 you have some text such as R1234JK-3
In cell A3 of the same sheet you want to know the record number in which
this text appears in column B (the Proj# column) of Sheet1
Assuming the record numbers are in order, this will give the answer
=MATCH(A2,Sheet1!B:B)-1
The reason for subtracting 1 is that the data begins with labels. If the
labels had been in row 5, say( then we would use =MATCH(A2,Sheet1!B:B)-5
If the record numbers are not in order (or some are missing) then use
=INDEX(Sheet1!A:A,MATCH(A2,Sheet1!B:B))
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"Jen_T" wrote in message
...
Is it possibly to look at cell value and if in a range to place the record
#
in a cell ?

E.g.
Value in A2 that I need to know if in a range "R1234JK-3"

RANGE
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9

Ce;; Value returned in A3 "1" which stands for record 1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Search for cell value

The records are not in order so thank you for the INDEX function. My other
concern is that sometimes there is multiple proj #s and may include the one I
am looking for within that range. How would one accompolish checking the
range in these types of situations.

Record # Proj # Billing # Review #
1 R1234JK-3, PRT456 KIKII-87 KL12367
2 RM334 PRT456 12456 0089JK_9
....



"Bernard Liengme" wrote:

I have interpreted this as follows;
You have data such as
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9
....
I will assume this is in Sheet1 in cells A1:D100
On Sheet2 in cell A2 you have some text such as R1234JK-3
In cell A3 of the same sheet you want to know the record number in which
this text appears in column B (the Proj# column) of Sheet1
Assuming the record numbers are in order, this will give the answer
=MATCH(A2,Sheet1!B:B)-1
The reason for subtracting 1 is that the data begins with labels. If the
labels had been in row 5, say( then we would use =MATCH(A2,Sheet1!B:B)-5
If the record numbers are not in order (or some are missing) then use
=INDEX(Sheet1!A:A,MATCH(A2,Sheet1!B:B))
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"Jen_T" wrote in message
...
Is it possibly to look at cell value and if in a range to place the record
#
in a cell ?

E.g.
Value in A2 that I need to know if in a range "R1234JK-3"

RANGE
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9

Ce;; Value returned in A3 "1" which stands for record 1


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default Search for cell value

I would not like to work with such a data set. I would split the double
entries into two cells using Data | Text to Column
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Jen_T" wrote in message
...
The records are not in order so thank you for the INDEX function. My other
concern is that sometimes there is multiple proj #s and may include the
one I
am looking for within that range. How would one accompolish checking the
range in these types of situations.

Record # Proj # Billing # Review
#
1 R1234JK-3, PRT456 KIKII-87 KL12367
2 RM334 PRT456 12456 0089JK_9
....



"Bernard Liengme" wrote:

I have interpreted this as follows;
You have data such as
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9
....
I will assume this is in Sheet1 in cells A1:D100
On Sheet2 in cell A2 you have some text such as R1234JK-3
In cell A3 of the same sheet you want to know the record number in which
this text appears in column B (the Proj# column) of Sheet1
Assuming the record numbers are in order, this will give the answer
=MATCH(A2,Sheet1!B:B)-1
The reason for subtracting 1 is that the data begins with labels. If the
labels had been in row 5, say( then we would use =MATCH(A2,Sheet1!B:B)-5
If the record numbers are not in order (or some are missing) then use
=INDEX(Sheet1!A:A,MATCH(A2,Sheet1!B:B))
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"Jen_T" wrote in message
...
Is it possibly to look at cell value and if in a range to place the
record
#
in a cell ?

E.g.
Value in A2 that I need to know if in a range "R1234JK-3"

RANGE
Record # Proj # Billing # Review #
1 R1234JK-3 KIKII-87 KL12367
2 RM334 12456 0089JK_9

Ce;; Value returned in A3 "1" which stands for record 1


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
how do i make a cell a search cell for a spreadsheet adam Excel Worksheet Functions 5 November 3rd 09 11:16 AM
copy a cell value based on search of another cell Pendal Excel Worksheet Functions 1 November 12th 08 05:33 PM
Search in cell Paul Dennis Excel Discussion (Misc queries) 5 October 21st 08 04:32 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
format cell to search text in another cell Newbie Bob Excel Discussion (Misc queries) 2 October 25th 05 01:23 AM


All times are GMT +1. The time now is 05:28 PM.

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"