Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Finding a string/using adjacent data question

It's a convuluted question that I hope has an easy answer. I'm rather
new to Excel formulas, so I've been trying to find stuff about this on
the internet but with not much luck. If anyone can help me at all I
would greatly appreciate it.

I have text strings in column A, A2-A335. I have numerical values that
correspond to each text string in columns B-O.

What I'm hoping to do is run a search for a given text string in column
A and then use the numerical values in D, H, and O for further
calculations.

I want to be able to type in a name in column Q (for example) and have
the formula return the values from the same row in columns D,H, and O
in descending format below the name. So, if I typed in, 'Bob,' in cell
Q2, for example, below my name it might return:

45 (from column D)
73 (from column H)
26 (from column O)

If you're still confused by what I'm requesting, I'll rephrase it as
best I can in sentence form:

First cell below the name:

"Search column A for the string given directly above this cell (Q2,
perhaps). If the specified string is found, return the number in that
row from the D column."

Second cell below the name:

"Search column A for the string given two cells above this cell (again,
Q2, perhaps). If the specified string is found, return the number in
that row from the H column."

Third cell below the name:

""Search column A for the string given three cells above this cell
(again, Q2, perhaps). If the specified string is found, return the
number in that row from the O column."



I'm not sure if this can be done but if anyone knows that it can be and
how, I would really appreciate it. If you need more information, say
the word and it will be here.

  #2   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Finding a string/using adjacent data question

Hi
One way,
in Q3 =VLOOKUP($Q$2,$A$2:$O$17,4,0)
in Q4 =VLOOKUP($Q$2,$A$2:$O$17,8,0)
in Q5 =VLOOKUP($Q$2,$A$2:$O$17,15,0)

--
Regards

Roger Govier


wrote in message
oups.com...
It's a convuluted question that I hope has an easy answer. I'm rather
new to Excel formulas, so I've been trying to find stuff about this on
the internet but with not much luck. If anyone can help me at all I
would greatly appreciate it.

I have text strings in column A, A2-A335. I have numerical values that
correspond to each text string in columns B-O.

What I'm hoping to do is run a search for a given text string in
column
A and then use the numerical values in D, H, and O for further
calculations.

I want to be able to type in a name in column Q (for example) and have
the formula return the values from the same row in columns D,H, and O
in descending format below the name. So, if I typed in, 'Bob,' in cell
Q2, for example, below my name it might return:

45 (from column D)
73 (from column H)
26 (from column O)

If you're still confused by what I'm requesting, I'll rephrase it as
best I can in sentence form:

First cell below the name:

"Search column A for the string given directly above this cell (Q2,
perhaps). If the specified string is found, return the number in that
row from the D column."

Second cell below the name:

"Search column A for the string given two cells above this cell
(again,
Q2, perhaps). If the specified string is found, return the number in
that row from the H column."

Third cell below the name:

""Search column A for the string given three cells above this cell
(again, Q2, perhaps). If the specified string is found, return the
number in that row from the O column."



I'm not sure if this can be done but if anyone knows that it can be
and
how, I would really appreciate it. If you need more information, say
the word and it will be here.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default Finding a string/using adjacent data question

Hi

I'm sorry, I was testing on a smaller range and only went to row 17. You
need to extend to row 335
The formulae should also be wrapped in IF() statements also, to prevent
#N/A when there is no value entered in Q2

in Q3 =IF($Q$2="","",VLOOKUP($Q$2,$A$2:$O$335,4,0))
in Q4 =IF($Q$2="","",VLOOKUP($Q$2,$A$2:$O$335,8,0))
in Q5 =IF($Q$2="","",VLOOKUP($Q$2,$A$2:$O$335,21,0))


--
Regards

Roger Govier


"Roger Govier" wrote in message
...
Hi
One way,
in Q3 =VLOOKUP($Q$2,$A$2:$O$17,4,0)
in Q4 =VLOOKUP($Q$2,$A$2:$O$17,8,0)
in Q5 =VLOOKUP($Q$2,$A$2:$O$17,15,0)

--
Regards

Roger Govier


wrote in message
oups.com...
It's a convuluted question that I hope has an easy answer. I'm rather
new to Excel formulas, so I've been trying to find stuff about this
on
the internet but with not much luck. If anyone can help me at all I
would greatly appreciate it.

I have text strings in column A, A2-A335. I have numerical values
that
correspond to each text string in columns B-O.

What I'm hoping to do is run a search for a given text string in
column
A and then use the numerical values in D, H, and O for further
calculations.

I want to be able to type in a name in column Q (for example) and
have
the formula return the values from the same row in columns D,H, and O
in descending format below the name. So, if I typed in, 'Bob,' in
cell
Q2, for example, below my name it might return:

45 (from column D)
73 (from column H)
26 (from column O)

If you're still confused by what I'm requesting, I'll rephrase it as
best I can in sentence form:

First cell below the name:

"Search column A for the string given directly above this cell (Q2,
perhaps). If the specified string is found, return the number in that
row from the D column."

Second cell below the name:

"Search column A for the string given two cells above this cell
(again,
Q2, perhaps). If the specified string is found, return the number in
that row from the H column."

Third cell below the name:

""Search column A for the string given three cells above this cell
(again, Q2, perhaps). If the specified string is found, return the
number in that row from the O column."



I'm not sure if this can be done but if anyone knows that it can be
and
how, I would really appreciate it. If you need more information, say
the word and it will be here.





  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default Finding a string/using adjacent data question

in Q3: =VLOOKUP($Q$2,A2:D335,4,FALSE)
in Q4: =VLOOKUP($Q$2,A2:H335,8,FALSE)
in Q5: =VLOOKUP($Q$2,A2:O335,15,FALSE)


Regards,
Stefi

ezt *rta:

It's a convuluted question that I hope has an easy answer. I'm rather
new to Excel formulas, so I've been trying to find stuff about this on
the internet but with not much luck. If anyone can help me at all I
would greatly appreciate it.

I have text strings in column A, A2-A335. I have numerical values that
correspond to each text string in columns B-O.

What I'm hoping to do is run a search for a given text string in column
A and then use the numerical values in D, H, and O for further
calculations.

I want to be able to type in a name in column Q (for example) and have
the formula return the values from the same row in columns D,H, and O
in descending format below the name. So, if I typed in, 'Bob,' in cell
Q2, for example, below my name it might return:

45 (from column D)
73 (from column H)
26 (from column O)

If you're still confused by what I'm requesting, I'll rephrase it as
best I can in sentence form:

First cell below the name:

"Search column A for the string given directly above this cell (Q2,
perhaps). If the specified string is found, return the number in that
row from the D column."

Second cell below the name:

"Search column A for the string given two cells above this cell (again,
Q2, perhaps). If the specified string is found, return the number in
that row from the H column."

Third cell below the name:

""Search column A for the string given three cells above this cell
(again, Q2, perhaps). If the specified string is found, return the
number in that row from the O column."



I'm not sure if this can be done but if anyone knows that it can be and
how, I would really appreciate it. If you need more information, say
the word and it will be here.


  #5   Report Post  
Posted to microsoft.public.excel.misc
Sloth
 
Posts: n/a
Default Finding a string/using adjacent data question

you want the VLOOKUP function. It will look like this.

Q1: "Text Here"
Q2: =VLOOKUP(Q1,A2:O335,4,FALSE)
Q2: =VLOOKUP(Q1,A2:O335,8,FALSE)
Q3: =VLOOKUP(Q1,A2:O335,15,FALSE)

" wrote:

It's a convuluted question that I hope has an easy answer. I'm rather
new to Excel formulas, so I've been trying to find stuff about this on
the internet but with not much luck. If anyone can help me at all I
would greatly appreciate it.

I have text strings in column A, A2-A335. I have numerical values that
correspond to each text string in columns B-O.

What I'm hoping to do is run a search for a given text string in column
A and then use the numerical values in D, H, and O for further
calculations.

I want to be able to type in a name in column Q (for example) and have
the formula return the values from the same row in columns D,H, and O
in descending format below the name. So, if I typed in, 'Bob,' in cell
Q2, for example, below my name it might return:

45 (from column D)
73 (from column H)
26 (from column O)

If you're still confused by what I'm requesting, I'll rephrase it as
best I can in sentence form:

First cell below the name:

"Search column A for the string given directly above this cell (Q2,
perhaps). If the specified string is found, return the number in that
row from the D column."

Second cell below the name:

"Search column A for the string given two cells above this cell (again,
Q2, perhaps). If the specified string is found, return the number in
that row from the H column."

Third cell below the name:

""Search column A for the string given three cells above this cell
(again, Q2, perhaps). If the specified string is found, return the
number in that row from the O column."



I'm not sure if this can be done but if anyone knows that it can be and
how, I would really appreciate it. If you need more information, say
the word and it will be here.




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
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Finding repeated data in a excel spreadsheet excel novice! Excel Discussion (Misc queries) 1 September 1st 05 11:48 AM
Finding min/max of adjacent data in a range of cells Paul987 Excel Worksheet Functions 5 July 15th 05 08:02 PM
adjacent data count from a binary column mike Excel Worksheet Functions 1 July 15th 05 03:00 PM
Newbie to charts question - projecting values between data points 38N90W Excel Discussion (Misc queries) 3 January 6th 05 05:15 AM


All times are GMT +1. The time now is 09:51 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"