how to get data added and deleted from two data frames when compared - python-3.x

I have two dataframes which is data we have is monthly data , in month data can be added and deleted when compared with other month data , i want column added in which added and other deleted.
example june output
customer region
a1 us
a2 us
b1 uk
b3 china
b4 aus
Example july output
customer region
a1 us
a2 taiwan
a3 india
b1 uk
b3 china
b4 india
b4 aus
b2 japan
output should be
delete region addedcustomer detedcus addedregion
us a1
a2 taiwan
us a3 india
b3 china
b4 india
b2 japan

Related

Return Value based on 2 criterias

ive noticed that similar question has been answered before but non are what i am looking for.
Sheet 1
Site Program Data Finished
A1001 B3
A1001 B5
A1001 B6
A1002 B3
A1003 B6
A1003 B5
Sheet 2
Site Location Date Released Program Data Finished
A1001 Chicago 1/3/2018 B6 6/5/2016
A1002 Chicago 1/4/2018 B3 1/3/2018
A1001 Chicago 1/1/2018 B3 4/5/2016
A1001 Chicago 1/2/2018 B5 1/1/2018
A1003 Chicago 1/5/2018 B6 4/5/2016
A1003 Chicago 1/6/2018 B5 1/1/2018
A1004 Chicago 1/7/2018 B4 1/2/2018
i need to return the Date Finished Values from Sheet 2 under Date Finished in Sheet 1 based on 2 criterias: the Site and Program.
So look for Site A1001 with B3 program under sheet 2 and return the Date Finish in sheet 1.
i'm stuck.... i have this formula but its not doing the job.
=IFNA(IF(VLOOKUP(VLOOKUP($A2290,[Capital Projects.xlsx]Modification'!$D:$D,1,0),'[Capital Projects.xlsx]Modification'!$D:$I,6,0)="5GmmW", VLOOKUP($A2290,[Capital Projects.xlsx]Modification'!$D:$EG,55,0),""),"")
Using structured references, with Table1 being the table on sheet2:
=AGGREGATE(14,4,(Table1[Site]=A2)*(Table1[Program]=B2)*Table1[date finished],1)
You can use regular references instead of a Table, but just ensure they cover more than the expected number of rows.

How to show multiple or all values in column C based on combination of column A and column B in Excel

Consider 3 columns below. For every unique combination of column A and column B I need to return the corresponding values(could be either 1 or 2) in column C.
A B C
USA Jan winter
USA Feb fall
USA Feb summer
China Jan summer
China Jan spring
China May fall
India Jan fall
India Feb summer
India May Rain
USA Jan Summer
Now, say for a random row 25, I have A25 as a dropdown list with value selected ="USA" and B25 as a dropdown list with value selected="Feb", in which case I would want C25 to have a dropdown list with the value in it being "Fall" and "Summer".
I did refer to this thread, It only returns me the first matched value which in my example is only "Fall". Although, I would want both the values returned("Fall" and "Summer").
The formula is used:
=INDEX(C2:C11,INDEX(MATCH(1,(A2:A11=A25)*(B2:B11=B25),0),0))
Any ideas on this would be helpful.
Thank you!

Multiple What IF Statement in Excel for Soccer score project

I have a long list of soccer data but in it's most simplistic form it looks like this:
A1 Barcelona
A2 Madrid
A3 2
A4 1
A5 (this will be the IF Statement)
There are over 200 rows but all with the same premice, so what I want is an if statement that says if the score in A3 is larger than A4 then A5 has a W and if A4 is a larger score than A3 than A5 has an L
Can someone give me some pointers as to how to do this, only need to know it for the top line of the data and then I can replicate throughout
Thanks
Dan
Try this if statement:
=IF(A3>A4,"W",IF(A4>A3,"L",IF(A3=A4,"Tie","")))

Replace a number with text from a table

I have to pull account reports out of a system but the regions are represented as a number. I have a separate list that has two columns, one with the region name and one with the corresponding number. I'm looking to write a formula that identifies the number in the report column and populates it with the region name from my static table.
Example:
Region List
A1 B1
1 00 London
2 01 West Midlands
3 02 Greater Manchester
Report
A2 B2
1 Customer A 00
2 Customer B 02
3 Customer C 02
4 Customer D 01
5 Customer E 00
As mentioned, I want to populate column B2 with the data from B1. B2's numbers will corrispond with A1's numbers. It's worth mentioning that there are also some variations like 07D or 19H, so the formula would need to take that into account.
Use this function, I hope it will work.
=INDEX('Region List'!$B$1:$B$3;MATCH($B1;'Region List'!$A$1:$A$3;0))

Excel Index Partial match

I have Sheet1 with column A listing every single country in alphabetical order..
A
1 Afghanistan<
2 Albania
3 Algeria
4 American Samoa
5 Andorra
----------
228 United Kingdom
229 United States
etc
I have Sheet2 column A with empty cells with adjacent cells in column B listing address details
A B
1 empty cell Unit 3, Road;London, United Kingdom
2 empty cell Building 1, Road, TX, United States
3 empty cell 8th floor, Business Park, India 1234
etc
What I would like to know is how can I obtain the country within the address details in sheet2 column B and place them in Sheet2 column A, based on a match on the list of countries in Sheet1 column A.
Part of the problem is there is no coherent method as to how to country is placed within the address; could be at the end or in the middle of the address.
I have tried various index match formulas with no luck
any help would be appreciated.
I tried it with the reference table being in A1:B7, and lookups being A10:B10 onwards down. The formula is for these cells. You can adjust it for Sheet1/2!.
Assuming your data is in B10 onwards, and your reference data was in B1:B7, you can write this formula in A10 =INDEX($B$1:$B$7,MAX(IF(ISERROR(FIND($B$1:$B$7,B10)),-1,1)*(ROW($B$1:$B$7)-ROW($B$1)+1))). This is an array formula, so please hit Ctrl+Shift+Enter for excel to read it as an array formula.
(In the screenshot, I have pasted the table in A10:B12 as values only in D10:E12)
Text to Columns with a comma delimiter

Resources