I have a list of actions in Excel, sorted by a couple of criterias by column, the 'key' or ID being the date it was added to the list. The relevant criterias are date in the A column, location, and category.
I want to follow-up on the actions listed by the criterias monthly. I have not gotten this function to work however, even after trying a couple of different functions. So basically I want to count the number of rows in column A (starting from row X, since the first columns are not included), that include the specific criteria from columns B and C. So I want to count the different categories separately, and each category by location.
The list of possibilities in B and C comes from a list that is used in data validation, so that the categories and locations are given in drop-down menus.
The follow-up is also on its own tab in the spreadsheet, and the list criterias on its own.
What I have tried so far is e.g. sumproduct with (--), countifs with the column and the expression (MONTH(A:A)=1) and (B:B;"criteriaX").
All of these give me a #VALUE!-error.
Related
I am trying to calculate order price for a Pizza Place.
I have item prices in one sheet:
And Order number in the other:
I want to match the order number in the two sheets and add the values of price if the order ID is the same in the two sheets.
I have been trying using VLOOKUP to match the values but the match runs only once for the two cells and adds the price of the next cell.
The order table contains the id and the dates and the order_detail table contains the items in the order and their prices.
Here's the Formula i've tried:
=IF(VLOOKUP(A2,order_details!A1:$D$48621,2,FALSE),
VLOOKUP(order_details!$C:$C,Table1[#All],4,FALSE) * order_details!$D:$D)
I looked up the first value in the first two tables with:
=VLOOKUP(A2,order_details!A1:$D$48621,2,FALSE)
Then for the calculation expression I looked up the price in the other table to match the pizza_id in the order table and the pizza_id in the lookup table and return the price and multiplied it with the quantity column in the order table:
=VLOOKUP(order_details!$C:$C,Table1[#All],4,FALSE) * order_details!$D:$D
I simplified this by creating a new column to house item prices in the order details.
Is there an easier way to solve this problem in Power BI? if yes then please share the measure or the column I need to make I have created the relations but I couldn't proceed further so I moved back to Excel.
I need to create a module that will count the amount of values in specified date ranges, with other criteria.
For example, I have a list of products (Products A, B , C, D) in column C, and their sale date in column G.
I need to count all of product A sold before 1/1/1998. I then need to calculate product A sold between 1/1/1998 and 1/1/2005 etc.
I need to be able to run this for all the types of products, and group products together.
E.g. count all of product A & B sold before 1/1/1998.
This has to be done for a new workbook on a weekly basis so ideally needs to be able to be run for a new workbook each week. The tab names always remain the same.
Any help on how to get started would be appreciated
This answer will assume that your dates are entered as excel dates in column G and not a text. You can test this by using the formula =ISNUMBER(G3) where G3 is one of your dates. If it returns true, then your date is properly stored for use by excel formulas and this answer.
=SUMPRODUCT((($C$1:$C$100="A")+($C$1:$C$100="B"))*($G$1:$G$100<Date(1998,1,1))
That is how to hard code it. Personally I would build a table. Each row of the table would be a product you are interested in knowing the count for and a sum of the count would give you combined totals. Repeat the table if you need multiple combinations.
In the following example a single product was counted and then the total for all products listed was the total. The formula for the example in L3 and copied down for each product was:
=SUMPRODUCT(($C$2:$C$9=$J4)*($G$2:$G$9<K4))
The total at the bottom of the table was a simple SUM formula. Because SUMPRODUCT performs array like operations, avoid using full column references and try to restrict it to the data that needs to be checked. Otherwise you may notice a slow down in your system as multiple excess calculations are being perfomed.
I am struggling with one part of this exercise. I'm able to sum based on one column unique values (i.e. column G). I'm also to extract unique names from columns with multiple names in same cell (column I). What I am not able to do is get work assigned for the person from multiple rows. For simplicity, the work is just divided equally between number of people in that row.
Desired outcome is in column L. Sample sheet to work with is here
https://docs.google.com/spreadsheets/d/1xwv8IV-XNMArSFZEdT8mR-ZbOFHRFFZMfAm7dwm3bbE/edit#gid=741595390
Try it as (in J3),
=SUMPRODUCT((D$3:D$8)/(LEN(C$3:C$8)-LEN(SUBSTITUTE(C$3:C$8, " ", ""))+1), --ISNUMBER(SEARCH(I3, C$3:C$8)))
My problem is the following:
I have multiple columns i want to make dependent lists of, but i have duplicates in the first 3 columns. I am able to make them dependent, but all the duplicates show up in the dropdown.
For Example:
You can see, the First column has duplicates and so does the second.
This is what i have tried.
Made the Product Category list as a List under Data validation using the uniques only.
Used the Offset, match formula to make the Sub-Product ID as a dependent list on what is selected in the cell before it for Product category.
When i do No. 2, say i chose A1 in the Product category, i end up getting 100,100 in the drop-down. I only want one iteration of 100 to be in the dependent dropdown.
Formula Used: =OFFSET(Second!E5,MATCH(C3,Second!$D$6:$D$282,0),0,COUNTIF(Second!$D$6:$D$282,C3))
Please help.
I have a spreadsheet with about 20 columns. Column A is numeric. Column B is alphanumeric. I want to filter out rows whose values in Column A are below a threshold. At the same time, I want to filter out rows whose values in Column B are duplicates of earlier values in Column B.
There are many ways to do this. But I am looking for an "elegant" way: a way that doesn't require pivot tables, conditional formatting, or the creation of an additional column. Is there a way that meets these criteria?
A number of posts speak to related ideas. But I haven't found any that speak directly to this problem.