Orders on 2 sheets and new order confirmation change followup - excel

How can I check whether order confirmations has changed from last weeks report?
I get an weekly report with orders (order number:x123) and confirmations(dates) and they are on different sheets.
What I would like to do is: With Vlookup, Find the corresponding order and print out word "old order" and then use this value to check the confirmations dates match per last week and print out "match" or " do not match".
I thought this was simple but I cant get it to work. Please help!

Related

Why won't Excel Filter function work with Month(A1)=Month(G1)?

I have a rather detailed Review\Score Card workbook where I tally scores when checking the previous day's work before submitting it for billing. On the Scorecard worksheet I want to show a list of review comments for the jobs from the previous month (monthly review). A simple filter with the tech's name works fine, but when I include month filtering it does not work.
Working
=FILTER('Install Reviews'!A:AD, ('Install Reviews'!B:B=ScoreCard!L3))
Not Working - Returns CALC error.
=FILTER('Install Reviews'!A:AD, ('Install Reviews'!B:B=ScoreCard!L3)*(MONTH('Install Reviews'!E:E)=MONTH(ScoreCard!B6)))
The 'Install Reviews'!E:E column contains valid dates. A simple formula in a separate cell of =MONTH('Install Reviews'!E120) returns "12". The value in ScoreCard!B6 is also a valid date and MONTH(ScoreCard!B6) returns "12", so I know the values in the referenced cells are valid dates.
Doing more testing I can return the month I want with Greater Than OR Less Than statements, but why won't the MONTH()=MONTH() statement work?
Working
FILTER('Install Reviews'!A:AD,('Install Reviews'!B:B=ScoreCard!B4)*(('Install Reviews'!E:E>B6)*('Install Reviews'!E:E<EOMONTH(B6,0))))

Problem with Excel IF function having too many arguements

I'm trying to automate a task for myself to see if I can see if an item is "overdue". However, I also wanted to add in a feature where if the item has been returned, then I won't be warned that that item is overdue. This is what I came up with so far:
=IF(OR(AND(A2<=TODAY()-14)), AND(D2=returned),"Overdue","Not due")
I'm currently trialling a 2 week loan period, where if the item is returned not returned within 14 days, I want the B column to show "overdue".
In my excel sheet, I'm currently trying to have cell B2 to show "not due" because while it has been more than 14 days, the item has been "returned" as can be seen from column D.
My current excel sheet
Thank you.
Try
=IF((OR(A2>TODAY(), D2="returned")), "Not Due", "Overdue")
Use the syntax for Example 2 to get a clean OR
Switch Not Due and Overdue because it is easier to reason about with OR than AND
Put quotes around "returned". Note you could use LOWER(D2) if you want to control for capitalization
=IF(AND(A2<=(TODAY()-14), D2<>"returned"),"Overdue","Not due")

Excel Power Pivot: Match next non-blank item after date match for customer across two tables using DAX

I need to create a calculated column in Table_Order that would find the next matching, non-blank Customer Status on or after the current Order Date for the current row Customer #.
The tricky part is when there is no matching Customer Status in Table_Ship for a Customer # on a particular Order Date (please see the orange highlights). The match then needs to be on the next matching Ship Date for the Customer # where the Customer Status is not blank.
Please could somebody help me and show me the DAX?
I've spent a long time Googling and have gotten nowhere. I feel like this should be easy!
Also please bear in mind that these tables are massively simplified versions of my actual work, and any suggestion to reorganise the tables or start from scratch won't help me, I need some DAX please!
Thanks in advance!
Phil.
I understand that you have large datasets, but I would recommend you create a FactCustomer table. Here there are the steps I followed with the data you provided.
Create a FactCustomer table
FactCustomer =
DISTINCT ( Table_Ship[Customer #] )
Create a relationship between Table_Ship and FactCustomer and Table_Order and FactCustomer, using Customer # as key.
Create a calculation in Table_Order to find customer status. The calculation makes a lookup (similar to VLOOKUP in excel) to find customer with the same date. This would retrieve the blank for Customer #3, so is neccesary to create a second calculation that would scan Table_Ship for the minimum date without blanks. The final step is using an IF statement to treat blank in the first function, when they are blank, the second formula is used.
Customer Status =
var find_customer = LOOKUPVALUE(Table_Ship[Customer Status],Table_Ship[Ship_Date],[Order Date],Table_Ship[Customer #],[Customer #])
var last_non_blank_date = CALCULATE(min(Table_Ship[Ship_Date]),Table_Ship[Customer Status]<>BLANK())
var find_non_blank = CALCULATE(min(Table_Ship[Customer Status]),filter(Table_Ship,Table_Ship[Ship_Date]=last_non_blank_date))
return if(ISBLANK(find_customer),find_non_blank,find_customer)
The result I get:

How to fix a Index+Match based on input value thats also dynamic

I have a great challenge I hope you can help me with.
What I want to achieve:
In the sheetname “Overal campaign information” I have an identical setup to the other sheetnames (for example Week 1 – Email, Week 1 – CPC and so on).
I want to user to first select their week and year and based (under E1) on these to selections, you can select a type that matches that week and year input.
What have I tried?
I have written an INDEX+MATCH that works well, but that is based on a hard coded sheet name and is not dynamic.
I have also tried the INDIRECT function to find information regardless of worksheet name, but failed hard
I have tried to CONCATENATE year+week to get a key to match against point 1, but also not succeeded
Wanted result
Based on the time frame selection (week and year) the type will show available types that matches that input.
Then it will fill in the information in C1:C13 and B17:V:300
Not really clear what you means by "fill in the information in C1:C13". But formula in 'Overal campaign information'!B17 could be
=OFFSET(INDIRECT("'Week "&$F$2&" - " & $F$4&"'!$B$17"),ROW(B17)-17,COLUMN(B17)-2)
This then can be filled into 'Overal campaign information'!B17:V300.

Dynamic filtering based on 2 parameters, one being an empty cell

I am trying to create a fairly simple excel based In and Out log. I have a user form, to check someone in, and a user form to check someone out. When checked in, there is a new entry(row) added to the data tab, with name, time in, etc... there is also a "time out" column that is left blank. Then when they are checked out the column "time out" is populated.
I want to be able to show a current log of everyone in the facility(on a tab separate from the data). By filtering based on all entries that have a "time in" but do not currently have a value for "time out". What would be the best way to handle this? I have tried an advanced filter, but cant seem to get it to check for the right variables.
You can use the =COUNTA() formula, which counts how many cells have anything in them in the following manner. If you have a column for each of name, time in, and time out, you could add a fourth column called "In the building" which would have the formula =IF(COUNTA(A3:C3)=3,"yes","no")
You can then filter this column to get all of the "yes" people.

Resources