Vlookup to compare two tables - vlookup

IF(ISNA(VLOOKUP(Table1,Table2,1,FALSE)),"No","Yes")
I want compare all the columns for two tables within a single excel sheet and I used the above formula but somehow the formula always gives "Yes" irrespective of whether the values match or not. Can someone please help me out to get correct comparison results.'
Thanks

Please see the snapshot below
Formula will be as below. Kindly take this as example and work out as per your wish.
=IF(VLOOKUP(G1,$A$1:$B$7,2,FALSE)=VLOOKUP(G1,$D$1:$E$7,2,FALSE),"Same","Different")

Related

Using Array Formula with Median and IF

I'm trying to find the median of a column based on two conditions. I thought using an ArrayFormula is best since there is no "medianifs"...I'm getting a result in my first cell but when I try to change the criteria in the cell beneath, you'll see I'm getting the exact same result, so I know something is wrong. Maybe the formula in the first cell isn't even the correct answer?
Here's my sheet.
I'm down in P94 and P95 trying to get the median values, you'll see the formulas that I've tried thus far.
Based on what you are attempting, I would use a filter to narrow down the criteria.
=MEDIAN(FILTER(N:N,F:F=O1,I:I=P1))
That way the data you are taking the median of is always the exact dataset needed.

Virtual array to be used into VLOOKUP and SUMIF formulas

I have the following tables
In Table 1 I have some items with relative quantity values. Beneath, I have a look-up table from which I can find the rule for summing up the item's quantities into the right Container.
Currently I use additional columns, one for each Container, for helping in succeding the task.
Each cell in additional columns has the following formula (ex. E4):
=IF(VLOOKUP($B4,$D$12:$G$17,MATCH(E$2,$D$11:$G$11,0),0)="x",1,0)
Then, each Container has a Sum of Values calculated as follow (ex. E3):
=SUMPRODUCT($C$4:$C$9,E$4:E$9)
The question is... Is there a way (no VBA) to obtain the same result without using additional helping columns?
I would like using something like this as formula (but it doesn't work):
=SUMPRODUCT($C$4:$C$9,IF(VLOOKUP($B4:$B9,$D$12:$G$17,MATCH(E$2,$D$11:$G$11,0),0)="x",1,0))
In short, I don't know if (and if yes, how) the helping columns in the sheet I use can be calculated on the fly from excel as virtual columns directly into a cell formula.
No limitations in the use of VLOOkUP and SUMIF functions -> SUMIF, SUMIFS, INDEX, MATCH and any other combination of Excel functions is fine as long as the goal of eliminating the help columns is achieved.
Any help on this would be really appreciated.
Thanks in advance to everyone
Try,
In E3, modified your formula and copied across right to G3 :
=SUMPRODUCT($C$4:$C$9,IF(VLOOKUP(T(IF({1},$B4:$B9)),$D$12:$G$17,MATCH(E$2,$D$11:$G$11,0),0)="x",1,0))
Or,
=SUMPRODUCT($C$4:$C$9*(VLOOKUP(T(IF({1},$B4:$B9)),$D$12:$G$17,MATCH(E$2,$D$11:$G$11,0),0)="x"))

DAX function to check the amount of dates that is greater than another set of dates in 2 different columns

I'm currently doing an internship where I have been asked to make a few visuals in Power BI
I've searched around, tried a couple of things. But the truth is I am very much a beginner at coding and functions in general. Only had basic courses of different languages during my education and to be fair, it's a bit outside my scope of work.
So I have 2 columns I need to compare in order to find out how many dates in column 2 that is greater than the dates in column 1
So I'm imagining something like:
Measure = IF[(Investments(Expected closure)]<[(Investments(Actualclosure)]
Basically I want an overview of how many investments have a later closure date than expected.
Next thing would possibly be to create a boxplot showing the distribution (by how far we are off).
I know this is very basic, and possibly not formulated in the best way possible, please let me know if you need any more information.
Thanks in advance
You can use a calculated column as a flag to identify if actual date > expected date and then count the flag.
Flag = IF('Table'[Act] > 'Table'[Exp], 1, 0)
Hope this helps. Thanks.
enter image description here
Welcome to the community. Be sure to read to read this for posting questions.
For your questions, you can use the following code. You are filter the table with your logical expression with FILTER and then you count the lines of a column with COUNTA.
Measure = CALCULATE(COUNTA('Investments'[Actualclosure]),FILTER(ALL('Investments'),'Investments'[Actualclosure]>'Investments'[Expected closure]))
Hope this solves your problem.

Want to bring over many columns from another table to a table that has a column of matching values

I have two (2) tables in Power Bi and I wish to bring over several columns from a table that has a column of matching values (there are many columns that I don't need). What is the best way to do so? I tried DAX query but it only allowed for one column to bring over using the LOOKUP function. I tried to merge the queries but didn't quite understand how to get it to work as the table expanded did not match up to the values. Some help please for performing this operation would be greatly appreciated. Thank you.
Don't do it with DAX, use Power Query to merge on the key column. This can all be achieved using the menu and options, no code required. This is the same as in Excel, so here's a walkthrough from Microsoft that goes through all the steps you might need.Once you start using Power Query you won't look back. Good Luck!

Remove repeating text values in cells in google chart table

Is it possible to remove repeating text data in a Google visualization chart table?Looking for quick suggestions
FYI Following is an example of my question.!
In the column 'Test Plan Name'..I want to remove the repeating names... Can it possible?
Thank You
http://i.stack.imgur.com/bKjk7.jpg
As far as I searched I couldn't find any option to eliminate duplicate values. But we can count the null and duplicate values.Also we can perform joins,avg,sum,min,max on a google table chart's column values.
This documentation explains about this. Hope this will help you.