Hi, Hoping someone can help. This is kinda similar to my previous thread but I think different enough of an issue to warrant a new thread.
I have Devices in one column, Memory in another, IMEIs in another and days in stock in another.
I want to have a sheet that shows which of each device has been in stock the longest.
I have experimented with IF formulas and VLOOKUP, concatenating cells so that it's only 1 IF, but it doesn't seem to work.
I want to, for example, look up iPhone 7 32Gb, see which has been in stock longest and report the IMEI of it.
My horrendous looking attempt follows - it currently just returns "No Stock" for everything.
Not all devices are in stock so some should be "No Stock".
Thanks in advance
EDIT: Just to add - Column M is Despatch state (either there will be a date or "Not Despatched", Column N is time in stock, and column T is IMEI. I think the whole thing needs re-writing as it's assuming there will be only one device in stock for that length of time, which it isn't (multiple are received at the same time). Thanks
I have Devices in one column, Memory in another, IMEIs in another and days in stock in another.
I want to have a sheet that shows which of each device has been in stock the longest.
I have experimented with IF formulas and VLOOKUP, concatenating cells so that it's only 1 IF, but it doesn't seem to work.
I want to, for example, look up iPhone 7 32Gb, see which has been in stock longest and report the IMEI of it.
My horrendous looking attempt follows - it currently just returns "No Stock" for everything.
Not all devices are in stock so some should be "No Stock".
Code:
=IF(Shipped!M:M="Not Despatched", (IF(VLOOKUP(MAX(Shipped!N:N), Shipped!N:N:Shipped!T:T, 1, FALSE)=D2, Shipped!T:T, "No Stock")), "No Stock")
Thanks in advance
EDIT: Just to add - Column M is Despatch state (either there will be a date or "Not Despatched", Column N is time in stock, and column T is IMEI. I think the whole thing needs re-writing as it's assuming there will be only one device in stock for that length of time, which it isn't (multiple are received at the same time). Thanks
Last edited: