Trying to pull data from one sheet to another
I'm trying to get the most recent submission of a form (about vehicles) to pull the most recent mileage to our master vehicle sheet.
I have tried several things, and I can't figure it out.
=(JOIN(COLLECT({Most Recent Vehicles Check in/out Range 4}, {Most Recent Vehicles Check in/out Range 3}, HAS([ASSET#]@row,@row)),"-")
I have also tried:
=INDEX({Most Recent Vehicles Check in/out Range 4}, MATCH([ASSET#]@row, {Most Recent Vehicles Check in/out Range 4}, 1), 4)
I want the current mileage to be pulled from the below sheet.
Do you have any advice? There are no duplicates, and i've already verified everything is the most recent entry.
Answers
-
Hi,
I assume the first image is your destination sheet (Master Vehicle Sheet) and the second one is your sheet to collect mileage through a form. Few questions before I can give a formula, do you want the check in or check out milage to be pulled? Do you have a date or a running number (auto number) in the sheet with the mileage?
Thanks,
Aravind GP| Delivery Manager
Atturra Data & Integration
M: +61493337445
E:Aravind.GP@atturra.com
W: www.atturra.com
-
You assume correctly.
I do want check in or check out and mileage to be pulled. I don't have a date or an auto number yet.
-
Please add an auto number column, just as Seq (for sequence) as the name of the column. You can then use this formula.
=INDEX({Current Mileage: column reference}, MATCH(MAX(COLLECT({Seq column reference}, {Asset Number column reference}, [Asset#]@row)), {Seq column reference}, 0))
Thanks,
Aravind GP| Delivery Manager
Atturra Data & Integration
M: +61493337445
E:Aravind.GP@atturra.com
W: www.atturra.com
-
It didn't work, I may have missed something. I did exactly what you said above.
-
Since you already have a checkbox indicating the most recent, you shouldn't need any additional columns. You should be able to just use:
=INDEX(COLLECT({Column To Pull Over}, {Checkbox Column}, @cell = 1, {Asset Column}, @cell = [Asset#]@row), 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 449 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 513 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!