简体   繁体   中英

New to excel, I wanted to ask if its possible to collect specific data from a table based on one input

Here is my question. I have two sheets. one contains receipts of purchases on each page horizontally. The other contains parts of those receipts that are necessary for arranging product delivery.

For example. the receipts would have mattress name, size, price, amount, tax, total, paid, unpaid, location, customer name, phone number, all row names, all column names, and receipt number. On my other sheet, i want to be able to Make it so that it would take these values in that order and put them in a row:

Mattress name, Size, Amount, Customer name, Phone number, Location, Unpaid, and receipt number.

I want to somehow automate that so that when i put in like the receipt number it will get everything needed from that receipt and put it in said columns in that row. Is there any way to do that?

I basically want to be able to enter a receipt number and have some code filter out the info i need and put it in specific cells in this other sheet. The receipt would have images and colors and distinguishing features, but i want the delivery sheet to be formal organized and only has necessary information for deliver.

I have no experience with VDA code for excel, and only minimal experience with normal formulas. Any help would be much appreciated.

Thank you for your time.

Sample Data:

Receipt:收据

Numbers represent order in Delivery (Subject to change if it makes it easier)

Delivery:交货数据

Shows the delivery data table and what it looks like. I can change this and reorder this however I want but I still need all information In there for delivery. If changing the order makes it somehow easier then I can do that.

This can be done with a lookup formula, for example Vlookup or Index/Match.

To use Vlookup, the receipt number must be the first column of the receipts table, eg in the sheet Receipts Table , column A.

Then on the delivery sheet, you can enter a receipt number into a cell, say A1, and use this formula in another cell:

=vlookup($A$1,'Receipts Table'!$A:$Z,4,false)

The 4 in the formula means "return the value from the 4th column", and the count starts with the first column in the lookup range. In this formula, the lookup range is all columns from A to Z, so the 4th column will be D. If you want to return the value from column E, use 5, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM