In a giant table, I want a formula that can look for a specific set of serial numbers and then return all the information in that row next to that serial number. What formula should I use? VLookup only returns one value. I want the whole row.

like
Posting as :
works at
You are currently posting as works at

Xlookup without a doubt. It can do it all

like

Use the filter() equation. Array formulas are sick

likesmart

Using =FILTER() here would not be optimal, as it is slower than any “first match” formula if you only have one match…

… which should be the case as it is a Serial number (serial numbers that duplicate would not be a good idea at all)

=INDEX(table, MATCH(serial_N,serial_N_column,0),)

Please do not use =XLOOKUP() - no need to use poorly optimized/bad formulas :)

P.s.: the formula above INDEXES your table, and MATCHES the row number by the serial number (only the first match). The comma after let excel knows you don't want to set a column number, I.e., return the whole row

Legends:
- table: refers to your whole table (if your serial number column is the first, you can select the whole table except the first column, so it doesn't return the serial number again)
- serial_N: the specific serial number you're looking for
- serial_N_column: the serial number column in your table

likeuplifting

✌️

Can you use PQ instead? It's a lot easier to write something to pull out that data rather than a formula.

If you can add a helper column that textjoins every column, then you can just lookup for that helper COLUMN. Then it'd work like a normal lookup.

SN, A, B, C, D, ABCD.

To do it in one formula, you'd have need a text join against the entire row but not the serial number. Which I can't be bothered to figure out.

likehelpful

Eventhough you have your solution, there are a few reasons I'd usually try to incorporate Textjoin.

1.) Ease of use, Textjoin and Lookup are basic functions you can easily fix and adjust.

2.) I haven't tested the other solutions but Textjoin skips blanks cells and allows you to add a custom delimiter.

SN, A, B, NULL, D

Will return.

A, B, D

Instead of

A, B,, D or A B D or even ABD.

This is important if you have two numbers in consecutive columns, you won't know 100% if it's correct. For example if 36 and 45 were B and D respectively. You might get the below which doesn't have context as you don't have column headers.

A 36 45 or A3645 which is useless.

Similarly two text columns with a space between them won't be clear either.

While a delimiter is more visually clearer like below.

A, 36, 45 or A | 36 | 45

You can also then wrap this in a Trim(Clean( to remove hidden spaces and characters and a Replace( for any cells with a single space in it.

It mainly depends on your data as well but if it's a giant table then you'd want as clean an output as possible.

If the other solutions return an array or good output. You can still clean it up with a Replace(Trim(Clean.

Drag the formula over??? Or if for some reason you need it all in one cell then just concentrate the vlookup with the other cells

My style might not be the cleanest, but:

If you know the serial numbers you can put that list on another sheet, add a column next to it, lets call it “category”, then fill those cells with a value like “Include.

Go back to the original sheet, add a column for “Category”, run a vlookup referencing the new list you just made.

Option 1:Convert the data set into a table and filter for “category” = “include”

Option 2: Put it in a pivot, use the same filter and format as needed.

To retrieve an entire row of information based on a specific serial number from a giant table in Excel, you can use an array formula that leverages the `INDEX` and `MATCH` functions. This approach allows you to fetch all the data in the row where the serial number is found. Here's how you can set up such a formula:

1. **Identify Your Data Range**: Let's say your data is in the range `A1:Z1000`, where column A contains the serial numbers.

2. **Setup the Formula**: You will use `INDEX` to return the whole row and `MATCH` to find the row number for the specific serial number you're searching for.

Here’s the formula you should use:

```excel
=INDEX($A$1:$Z$1000, MATCH("specific_serial_number", $A$1:$A$1000, 0), 0)
```

**Explanation**:
- `MATCH("specific_serial_number", $A$1:$A$1000, 0)`: This part of the formula searches for the `specific_serial_number` in the range `$A$1:$A$1000` and returns the row number where it is found. The `0` at the end indicates an exact match is needed.
- `INDEX($A$1:$Z$1000, ... , 0)`: The `INDEX` function is used to select the entire row (`$A$1:$Z$1000`) where the `MATCH` function found the serial number. The `0` as the column argument in `INDEX` tells Excel to return all columns in the identified row.

**Note**: This formula should be entered as an array formula in Excel versions prior to Excel 365 and 2019. You do this by pressing `Ctrl` + `Shift` + `Enter` after typing the formula. In newer versions of Excel, it should work without needing to be entered as an array formula.

If you have Excel 365 or Excel 2019, another simpler approach could be using the `FILTER` function if you just want to display the rows matching certain criteria:

```excel
=FILTER($A$1:$Z$1000, $A$1:$A$1000 = "specific_serial_number")
```

This will automatically filter and display all rows where the serial number matches "specific_serial_number".

Don’t thank me, thank ChatGPT

This works but xlookup would work too and be much easier

like

Y’all are so great on this bowl. All of these helped me out in some way. Thank you!!

As an alternative, create a pivito table that filters on serial number, and have all the rows with that serials number appear.

Related Posts

“The shaft is not always welcome, but but hole always is.”

likefunny

Hi,

I am about to join Amazon team in del18 -B&M Sites suppose in case if I don't like the work can I request them to change my role to some other department in 1-2 months also any insights about this role?

like

Clients are pain in the ass out here

like

To the struggling healthcare student. It’s okay to struggle and not know stuff. Sincerely your friendly neighborhood physical therapist.

like

Might be shifting to a outpatient oncology position from a medical social worker in a hospital setting, any pros/cons major differences?

helpfullike

Hello PwC fishes, Does the firm provide a work from home setup or any sort of allowances to buy the necessary equipment ? (Desk, monitor, docking station, chair,etc)
Joining as a Senior Manager soon.

like

Hi,

Can someone help me with the inhand salary for the below mentioned.

Post Photo

Hello All,

I bought CER006 on Nov 21 with my current company email id and completed one certification. I am leaving my current organization and I still have 9+ months time left for CER006. My company says the s user id provided by them will get de-activated once I leave (in a week). I have not claimed the amount also. Is there any way I can transfer the certification to my personal email I'd so that I can write other exams in time left?

How long have those who have been looking for a job been looking? No luck here.

like

Maximum ctc that TCS can offer to 5yr full stack developer .....

like

MTC Proposes Removing Online Sales solicitation from 86-272 protection. Thoughts?

like

We want Problems, we don’t want solutions

Post Photo
like

How are Cleveland firms responding to the pandemic? WFH? Business as usual? Curious to hear

like

Happy New Year!

like

How would your rate your companies in AI, data science , ML practice ? What are some unique things companies are doing to upskill and transform. ?

Did anyone else make the move from Vancouver? What do you think?

like

My company went toxic in the last couple months. Chose me and started interviewing. Had a very successful interview with Amazon but recruiter is working hard trying to place me and said there’s no knowing how long to find a team. Meanwhile I just received a Director offer for a company with a 29% pay bump July 1. If Amazon or any other FAANG/large co gets back to me, is there an acceptable way to not burn bridges with new job and accept or delay start date with FAANG? Or fuck it just hop?

like

What programs do my fellow HR managers recommend as far as personality assessments for hiring ?

like

I cleared the interview of Tech Mahindra and got mail to submit the documents.

I have 6.7 years of experience in a niche technology. Current package is 14.5lpa.
My interview went good.

How much should i ask for ?
And, will i get the offer after i submit the documents?Tech Mahindra

Additional Posts in Excel Genius

What is the best FP&A tool, Anaplan, Jirav, Planful, Vena? Any other recommendation?

like

Any suggestions for a formula to calculate a running count of the number of incidences in a list? For example, in a list with A, B, C, B; I want to label A = 1, then the first B =1, and first C = 1, and then the second B = 2, etc. The list is in a column and there are thousands of names. TIA for your help!

Is it possible to round a number (say rounding $98 to $100) without losing precision in following calcs? So I only want to round visually and I want the calcs from that cell to remain off the $98 not $100

likehelpful

How can I copy a formula from one sheet to another?i tried the simple Ctrl+C, Ctrl-V, but the formula refers to the old sheet.

like

For a linear regression analysis… the equation of a line is Y=MX+B, where M is the slope. So if I’m measuring a line across 365 days and M=.2, can I say that I have increased production by 20% over a year. Or is production increasing 20% each day?

like

Anyone have an app or Excel spreadsheet they use to keep track of utilization? We just switched systems and our new system doesn’t give us a real time balance of our utilization rate (cont)

How do I change line style@back to default on excel? Accidentally click on one, and now it wants to use that style every time. I just want to be able to use the ones in the typical drop down

like

After I set a print area, how do I showcase the page 1 - page x in the excel sheet and have the background be grey?

Need help building an electric schedule for a production schedule with a Gantt chart style view (sort of)

Currently have an excel list with resource (production line), start date and time, and then also the name of the item being produced.

Any ideas how to tackle this??

I’m thinking a stacked bar chart with the vertical categories to be my resources and horizontal the date/time and then each individual bar to be the name of the item being produced.

Thank you for the help Excel Gods 🙏

like

I am looking for a way to link my Salesforce data into excel so I can have the latest data at all times. Instead of the typical download of static data that by the time I am reporting the data has changed.

like

I’m referencing a cell (numeric) to a text cell. Is there a way to format that number to include commas? See example in comments.

Best free data sites to tap into to build a city analysis model? Basically I want to "discover" cities with certain dimensions, like: population, elevation, climate, and proximity to other things (ski resorts, particularly)?

like

Hello. Quick question about formatting. I have an excel sheet with bunch of negative numbers, but some are percentage values and some are dollar values. Is there a way to make all of them have a parenthesis for being negative while keeping them still percentage and dollar value separately or do I have to target them separately?

like

Hi excel geniuses, how do I quickly copy info from one cell to blanks for same if. Semi below I have products and names, for the blank fields w same product how do I quickly copy for the rest of the blank cells?

Post Photo

Best websites to get more of a handle on Excel as a beginner-intermediate?

like

Hey, I have been tasked with teaching some of my coworkers excel from the very basics to more advanced. Does anyone have recommendations on the skills to teach them about? Thank you all in advance!

helpful

Hi Group, seems like it should be basic format, but I just can not get it to work. a list of data and want to alternate shade (blue,white,blue,etc) each line but if I have multiple lines I want to group together and they all shade the same. I want to group by the same data in column A, and the number of rows that are the same could vary. So let’s say row 1& 2 same entry in column A(blue) row 3 different (white) row 4,5,6 same as each other different to other rows (blue) etc… help 🙏

like

Timesaver: If you’re working on a file saved on the cloud (teams, share point, etc.) and need the URL to communicate out, tap FILE -> INFO -> COPY PATH and the url will be on your clipboard. Pre-established sharing privileges of orig folder will apply. Hopefully this saves you time reshuffling open windows! Bonus: Same on standard MS suite files.

likesmart

I’m verrrrrry new to excel and am going crazy because is there not a way to “clip” text in cells like you can in google sheets? I read about a “fill” option, but then noticed that cells that aren’t filled just repeat text. 😂🤯

like

How do I set the formula to calculate “If x falls between 1-10, return 1-10, if it falls between 11-20, return 11-20, and so on”

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal