I am currently working with a very big data, and trying to filter my data just like the formula in the photo.
I filtered my data with conditions that only suited for the first condition. My formula worked. But quite long. How to optimize this formula?
You can use VLOOKUP to return the correct limits:
=FILTER(A2:C11,(VLOOKUP(B2:B11,E2:G4,2,FALSE)<=C2:C11)*(VLOOKUP(B2:B11,E2:G4,3,FALSE)>=C2:C11))
Note, I did not include the title in the ranges, it causes errors.
Related
I'm new to excel and facing an issue while sorting columns that comprise of cell references.
Pre-sorting:
Post-sorting:
Post sorting the references get jumbled.
I have applied conditional formatting to see the largest 5 values for better understanding.
Could someone explain why this occurs and a work around for this?
I know you can paste values elsewhere and then sort it but I'm hoping for a more efficient solution.
I have two excel datasheets i.e. 'Data' and 'Sheet1'. Now, I am using the following excel formula to bring some data from 'Sheet1' to 'Data':
=IF(AND(Data!B2=Sheet1!A2,Data!C2="Argentina"),Data!AU2:CR2=Sheet1!B2:AY2,NAN)
The formula return "#NAME?".
Can you help solve this issue? Thanks in advance.
You no need to mention destination sheet cells in formula. If function doesn't accept this. Try below formula
=IF(AND(Data!B2=Sheet1!A2,Data!C2="Argentina"),Sheet1!B2,"NAN")
This is advise too large to fit into a comment:
In order to solve such an issue, you can use Formula auditing: it gets into your formula and solves it step by step.
After some evaluations, I get the question to evaluate this formula:
=IF(FALSE, Data!AU2:CR2=Sheet1!B2:AY2, NAN)
And the moment it wants to evaluate Data!AU2:CR2=Sheet1!B2:AY2, I get an error.
I tried to put this formula excerpt as a single formula into a sheet, and as a result I got a complete row, filled with boolean values (which does not fit into one single cell, explaining the problem).
What are you trying to do here? Do you want every single value to be equal? Do you want matches? ...
I have used the formula sumifs in order to calculate the sum of values in a column ranging between, e.g., 100 and 1000, located in a different workbook. The problem is that when I close that excel workbook the formula in my first excel file doesn't work anymore and #value appears. I would like to find an alternative formula/solution to this, and I have already looked online, but I don't seem to be able to find a proper solution. For instance, I could use sumproduct, but as a result I only get a count of the values satisfying the conditions and not the sum of them. Could you help me?
Thanks.
Giulio
There are a few functions which do not work when the source data file is closed. They are:
SUMIF(), COUNTIF(), AVERAGEIF(), OFFSET(), INDIRECT(), GETPIVOTDATA(), SUMIFS(), COUNTIFS(), AVERAGEIFS().
You will have to write alternative formulas in those cells or have the source data in the file that is doing the calculation
I am using the Excel SUMIFS formulas to look for certain item numbers and add that value to the sum. The issue I am having is that many of our item numbers are very close to each other, i.e. 52000135890001 & 52000135890002.
The issue I am having is that the SUMIFS function seems to see these two items as the same value, and is suming them together. I want them added separately, as to us, they are essentially two different items.
I have tried changing the data type for the item numbers to every possible option but the formulas continues to group these together when performing the function.
Does anyone have any ideas how I can still use the SUMIFS formula but somehow tell it to see these two items as different, instead of adding them together under the same criteria?
I am at a loss and losing my mind so any advice would be beyond helpful!
Kyle
You format all your required cells (range cells, criteria and sum_range cells) to custom format as ##################', then apply the sumif it will work by using the right value.
i have a data bank in excel that i want to get sum of an item in specific date in another workbook file, i try to find a solution with excel function instead of macro. i made a file to explain what i mean:
picture above is like my data bank,i want in another file if i enter a date, for example all A items with good quality to be summed, for 7/10/2016 answer is 8.
i don't know how to use hlookup and sumifs for it (for now i think hlookup and sumifs could answer my question). please help me to solve this problem
If in H2 is the date, H4 the item and H6 the quality then use something like:
=SUMIF(A2:A102,H4,INDEX(C:E,MATCH(H6,B2:B4)+1,MATCH(H2,C1:E1)):INDEX(C:E,MATCH(H6,B2:B4)+101,MATCH(H2,C1:E1)))
It would be less complex with OFFSET, but I tried to avoid volatile functions ;)
If you unmerge the items column, you can use a simple PivotTable to view all sums (or any filter of them) at once: