Search for number on one sheet, return ref number on a different sheet

dwrowe001

Board Regular
Joined
Mar 12, 2017
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Hi,
Need help again with another formula.. this one is kinda complicated..

I have SHEET A Below:

Ref numbers in column A, 1 thru 75
numbers to be searched in columns B thru BT, every other row,
A
B
C
D
E
F
G
H
I
J
K
L
M
N

ALL THE WAY TO BT
1
1
45
34
55
50
45
23
19
22
67
89
0
0
0
2
3
2
56
23
28
45
51
52
77
61
0
0
0
4
5
3
0
0
0
0
0
0
0
0
6
7
4
75
88
73
24
30
45
0
0
0
0
8
9
5
94
10
11
6
12
13
7

<tbody>
</tbody>

I need a formula which will be on SHEET B, to search the numbers in Columns B thru BT, every other row, 1 thru X ( I have Ref numbers 1 thru 75).. then return the Ref number from Column A in the row where the search number was found.

So say I was looking for the number 45, the formula should return Ref numbers 1,1,2,4... If possible I would like the returned numbers to appear in one Cell on a different sheet (SHEET B) separated by a comma..

Thank you for the help!!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Sorry not in one cell but more.
A1: 45
B1: =IFERROR(INDEX(SheetA!$B$1:$BT$149,SUMPRODUCT((LARGE(($A1=Sheet1$B$1:$BT$149)*ROW($1:$149),COLUMN()-1)))),"")

Copy this formula to the right.
 
Upvote 0
Sorry not in one cell but more.
A1: 45
B1: =IFERROR(INDEX(SheetA!$B$1:$BT$149,SUMPRODUCT((LARGE(($A1=Sheet1$B$1:$BT$149)*ROW($1:$149),COLUMN()-1)))),"")

Copy this formula to the right.

Hi Mart37,
thank you for replying.. I can't seem to get it to work?? I'm probably doing something wrong?
 
Upvote 0
Sorry, two mistakes!

=IFERROR(INDEX(SheetA!$B$1:$B$149,SUMPRODUCT((LARGE(($A1=SheetA!$B$1:$BT$149)*ROW($1:$149),COLUMN()-1)))),"")
 
Last edited:
Upvote 0
Sorry, two mistakes!

=IFERROR(INDEX(SheetA!$B$1:$B$149,SUMPRODUCT((LARGE(($A1=SheetA!$B$1:$BT$149)*ROW($1:$149),COLUMN()-1)))),"")

Ok... almost got it, but there still is something wrong.. when I tried to put it into the cell I got a popup window asking me to update values in a different location.. FYI, I copied the sheet that I'm putting in from a different spreadsheet... looks like it wants to update values in that location?? confusing.
 
Upvote 0
Ok... almost got it, but there still is something wrong.. when I tried to put it into the cell I got a popup window asking me to update values in a different location.. FYI, I copied the sheet that I'm putting in from a different spreadsheet... looks like it wants to update values in that location?? confusing.

I thought it was going to work, but I was wrong.. not sure what is wrong or if I'm doing something wrong.. I tried several different configurations, variations etc.. nothing.
 
Upvote 0
Have you change the reference to your sheet correctly?
Sheetname!$B$1:$BT$149 or with a space in the name: 'Sheet name'!$B$1:$BT$149

Are the rownumbers equail?
$B$1:$BT$149 changed in
$B$1:$BT$200 then row($1:$200) --> 200 is number of refnumbers
$B$1:$BT$149 changed in $B$2:$BT$150 then row($1:$149)
 
Last edited:
Upvote 0
Have you change the reference to your sheet correctly?
Sheetname!$B$1:$BT$149 or with a space in the name: 'Sheet name'!$B$1:$BT$149

Are the rownumbers equail?
$B$1:$BT$149 changed in
$B$1:$BT$200 then row($1:$200) --> 200 is number of refnumbers
$B$1:$BT$149 changed in $B$2:$BT$150 then row($1:$149)

I'm a little confused what I'm supposed to change to what?? I'm a EXCEL neophyte, not very savy. I can handle small easy formulas like SUM(A1:A3), but when it comes to the bigger, longer ones with strange functions like Column, row, offset etc... I get easily confused.

I have changed the references on the formula you provided to match what I have in my sheets, several different ways to correspond to the data in my sheets but it still doesn't return what It should, numbers don't match..

One strange thing that keeps occurring, when I change the values in the formula and hit return a window opens up, asking me to update values in the sheet, like it wants me to click on a file name to update values.. I did copy paste the sheet Im working in from another EXCEL spreadsheet.. so it appears it's trying to update values in that other spreadsheet... confusing...

I don't mean to be pain the rear, I really appreciate you trying to help me.
Thank you
Dave
 
Upvote 0
Use copy - paste as values.
Or remove all links in the formulas.
Otherwise there are left links to the workbook copied from!
 
Last edited:
Upvote 0
Use copy - paste as values.
Or remove all links in the formulas.
Otherwise there are left links to the workbook copied from!

I've checked for any links, not sure where to check but best as I can tell there are no links visible...
When I try to paste your formula into the cell, and after I make the changes to match my sheets, I hit enter and thats when the window opens up wanting me to update values... I wish I could screen capture that part... I click on the spreadsheet name and click ok... below is what happens to the formula after that:
=IFERROR(INDEX('[Last5Ball1]Last 5 Ball 1'!$M4:$BT$178,SUMPRODUCT((LARGE(($A1='[Last5Ball1]Last 5 Ball 1'!$M$4:$BT$178)*ROW(1:178),COLUMN()-1)))),"")

Dave
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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