Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Lookup formula?? or other

Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Lookup formula?? or other

=INDIRECT("I" & MATCH(B7,J1:J32,1))
--
Gary''s Student - gsnu200725
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Lookup formula?? or other

Thanks Gary but it doesn't seem to work still. It gives me data from column I
but seems to give a random row rather than the cell directly to the left of
the cell in J

"Gary''s Student" wrote:

=INDIRECT("I" & MATCH(B7,J1:J32,1))
--
Gary''s Student - gsnu200725

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Lookup formula?? or other

=index(i1:i32,match(b7,j1:j32,0))

Is one way.



Klee wrote:

Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Lookup formula?? or other

Try this:

=INDEX(I1:I32,MATCH(B7,J1:J32,0))

Biff

"Klee" wrote in message
...
Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Lookup formula?? or other

Thanks but this one just gives me an error. Maybe I'm explaining it wrong.

my B column is a drop down list so it will always be a cell within J1 and J35
my A column needs to = column I with the same row as in B

eg: if b1=J5 then C1 has to = I5 and so on... Any thoughts?

"Dave Peterson" wrote:

=index(i1:i32,match(b7,j1:j32,0))

Is one way.



Klee wrote:

Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 67
Default Lookup formula?? or other

This works perfectly, thanks very much.

"T. Valko" wrote:

Try this:

=INDEX(I1:I32,MATCH(B7,J1:J32,0))

Biff

"Klee" wrote in message
...
Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Lookup formula?? or other

You sure?



Klee wrote:

Thanks but this one just gives me an error. Maybe I'm explaining it wrong.

my B column is a drop down list so it will always be a cell within J1 and J35
my A column needs to = column I with the same row as in B

eg: if b1=J5 then C1 has to = I5 and so on... Any thoughts?

"Dave Peterson" wrote:

=index(i1:i32,match(b7,j1:j32,0))

Is one way.



Klee wrote:

Hi there, I'm trying to find a way to have a cell return a number from one
column if another cell has text from another column. eg;

I need the formula for cell A7 so

If cell B7 = anything cell between J1:J32 then I need A7 to = the same row
in column I (1:32)

so if B7= J14 "office supplies", A7 will = I14 "account #8005

Sorry if I haven't stated it very clearly. I was thinking it could be a
lookup formula but I can't figure it out. Thanks in advance for the help


--

Dave Peterson


--

Dave Peterson
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
Lookup formula? tmerton Excel Discussion (Misc queries) 1 May 2nd 06 02:49 AM
Help with a Lookup Formula Frick Excel Worksheet Functions 2 March 10th 06 12:03 AM
Lookup Formula abcdexcel Excel Discussion (Misc queries) 7 January 4th 06 05:20 AM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM
If the lookup-value is a formula Adam Excel Worksheet Functions 0 February 17th 05 02:31 PM


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