How to extract information?

EduPAz

Board Regular
Joined
Mar 18, 2017
Messages
69
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,
Can someone please help me with this doubt?

I have in worksheet1 these columns:
Product: A, B,C
Code: 11111, 22222, 33333
Jan-19: 2, , 3
Feb-19:
Mar-19:1,8,9
...
Dec-19:5, ,


In worksheet2, I have the same product and code information. I would like to get the last moth where it was a quantity assigned for each product. For example:

Product:A
Code: 11111
Jan-19:4
Feb-19:
Mar-193
Apr-19:
May-19: 2
Jun-19
Jul-19
Aug-19:
Sep-19:
Oct-19:1
Nov-19:
Dec-19

In worksheet2:
Product: A
Code:11111
Last month: Oct-19

Thanks,

Edu
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
i think a simple VLOOKUP would be perfect for this.....something like =VLOOKUP($A$2,Sheet1!$A$2:$D$4,4,FALSE) theres other ways to do it but that would work. if you want it in VBA script i could write it for you
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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