Excel to lookup and return data on worksheet

cinox

New Member
Joined
Mar 14, 2011
Messages
11
Hi,

I`ve made a worksheet with an overview of my sheeps at the farm:

Sheep nr: 1111 Lamb nr: 9999

And i`ve made a new worksheet within a tab on my existing worksheet for the lambs.

And i have like:

Lamb nr: 9999 and i have Mother of lamb: <- and here i want word to automatic look up the first worksheet and return with sheep nr that matches lamb nr: 9999.

Someone know what function i can use and how i can do it?

Thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Thank you seems like this is what i need :-)

But i have a problem... My reference is lets say A15 and value in A15 is: 1101
But in the match colum my reference has like 1101 , 1102 , 1103 and my function returns N/A. If i change reference in function to *1101* then it works.
But then it wont work for the other cells. Is it possible to use something like *A15* ????

how could i resolve this?


 
Upvote 0
It would be better to split entries like 1101 , 1102 , 1103 into separate columns. You can do this by selecting the column, Data > Text to Columns, specify Delimited with , as the delimiter.
 
Upvote 0
I can`t do that.. because the "Match" function can only look after match in one row for example $D$ if i trye $D$:$E$ it gives me N/A.
Then i have to have 3 numbers in one colum. Thats why i need something like Reference colum: *A15* .... "*1101*" works but not *A15* is there any way to do this??
 
Upvote 0
thanks your the man :-)

anyway do you know if its possible to have "Match" function to check two colums like C&D for the value only get it to work with one colum.

regards,

sindre
 
Upvote 0
You would need to use (pseudo formula)

=IF(ISNA(formula to look in column C), formula to look in column D,formula to look in column C)
 
Upvote 0
ok, so if i have this formula now:

=INDEX($A$4:$A$30;MATCH(A18;$D$4:$D$30;0)

and want to add also E4 : E30
how should it be then?

thx
 
Upvote 0
Try

=IF(ISNA(MATCH(A18;$D$4:$D$30;0));INDEX($A$4:$A$30;MATCH(A18;$E$4:$E$30;0));INDEX($A$4:$A$30;MATCH(A18;$D$4:$D$30;0)))
 
Upvote 0

Forum statistics

Threads
1,224,614
Messages
6,179,906
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top