PQ storing data from previous query not file and comparing variation

daleholden

Board Regular
Joined
Sep 22, 2002
Messages
243
HI Guys

PQ head scratcher for March 2022 ?

Setup

I get a file from online retailer several times daily to show live items for sale.

This has the unique item number for listing but it also has a supplier SKU.

I bring this back into PQ and use 2 parameters to look at sku then go off to get price from suppliers api.

At this point i now know price of supplier and stock and can compare with my online retailer.

I can then adjust qty either remove from sale or put back for sale all depending on supplier info.



This i have working but i want to work out how i can store the price from the supplier each time so i can compare when the next file comes in.

Eg

13 Mar 2022

SKU 1234 Supplier Cost £100 Diff £0 Online Price £120

14 Mar 2022

SKU 1234 Supplier Cost £120 Diff £20 Online Price £140

15 Mar 2022

SKU 1234 Supplier Cost £110 Diff -£10 Online Price £130



Hope this makes sense it needs to look back a previous files price and adjust Online price accordingly

The issue with this is the file i download does not have the data i need it is only until the query has run and then it can compare. Struggling to work out how to do this and keep the supplier data stored.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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