I am trying to get all the products and their quantities sold on a given date from a table. The attached file explains it a bit better.
I am trying to get all the products and their quantities sold on a given date from a table. The attached file explains it a bit better.
It would be useful to know if the products and the quantities that were sold during a period i.e. 1/1 to 5/1 could be extracted, too
I can do it using a helper column but I am trying to avoid that.
Hello BRISBANEBOB,
Well, technically, the easiest way to do this without VBA is to copy paste the entire unique name list on the J column and use a formula like this:
Which will simply return the value on the corresponding column, and afterward you can copy paste value, filter / sort it I guess.![]()
Please Login or Register to view this content.
If you want to sorten it even further in the steps you need to do, you can probably make use of Array Formula, but it will take a toll on the performance if you have a large amount of data.
Also, are you fine with an VBA approach? It will be a neater approach in my opinion.
Here is your sample with the formula, just change the date in E21 and you will see it change.
(copy pasta from Ford)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
Regards,
Lem
Another way using array formula in E23 and filling down.If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.Formula:
Please Login or Register to view this content.
Then this formula in F23 and filled down.It does not have to be array entered.Formula:
Please Login or Register to view this content.
Dave
Thank you both - I am avoiding the VBA solution due to IT policy. I am studying the array formula (which I am slowly getting to grips with). I will revert tomorrow. Thanks again
You're welcome. Thanks for the feedback.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks