I am trying to follow the example here.
https://www.sumproduct.com/blog/article/power-pivot-principles/ppp-introducing-the-rankx-function
I created a table named 'MyRanks', which looks like this.
If I enter '=RANKX(MyRanks,[Total Sales])', nothing happens.
When I go to PowerPivot and Calculated Fields, then I enter '=RANKX(MyRanks,[Total Sales])', I get an error saying, 'The name you entered is not valid.'
Finally, when I select the table and click Calculated Fields and New Calculated Field, I get this error.
When I look at YouTube videos, it always works fine for people. When I try to do it, it never works for me. Not sure if something is not setup right, or what's going on here. Any guidance would be greatly appreciated.
Related
I am trying to wrap my head around the functions of INDEX/MATCH/CHOOSE in excel. I have been looking up guides to see how the functions operate, however, I have hit a snag.
My spreadsheet has 2 sets of radio buttons.
One that has companies 1,2 & 3 on them
And the second is whether that company is using the corporate or individual trustee
The relevant data I have for this function is shown in the picture with the formula below:
=INDEX($L$4:$Q$5,CHOOSE(MATCH(N10,{0,500000}),AD2,1),MATCH(AF2,$L$2:$Q$2,0)+MATCH(M10,$L$3:$M$3,0)-1)
I have managed to get the parameters working to see when company 1,2 or 3 is clicked and if its a Corp. or Trustee, however, I cannot for the life of me work out how to get the values below IF the portfolio size (D5) is below 500,000 to display the other value...
The radio buttons for the company link to cell AF2
and the corp./indiv link to AD2
I have tried IF statements through the function however excel did not like the logic. I am sure this is a simple fix but it's throwing me off tenfold, so any help would be greatly appreciated :)
Please let me know if you need me to provide anymore information
I'm using Office Script to generate a pivot table and that works. However, for my data hierarchy, I need "count" instead of the default "sum". How do I go about doing that?
I'm adding a hierarchy using the following - this works but summarizes by "sum"
pivotTable.addRowHierarchy(pivotTable.getHierarchy("Company"));
pivotTable.addDataHierarchy(pivotTable.getHierarchy("Unit ID"));
From the script reference page, I need to somehow embed the count function into the above snippet. Does anyone know how to do that? I tried "Record Actions", but it wasn't able to catch the switch from "sum" to "count".
Thanks a lot
Figured it out - to change the summarize function, we need to chain the aggregate function to the end of addDataHierarchy.
The second line in the previous example therefore becomes:
pivotTable.addDataHierarchy(pivotTable.getHierarchy("Unit ID")).setSummarizeBy(ExcelScript.AggregationFunction.count);
For more details refer to setSummarizeBy(summarizeBy).
I have 3 different planting suppliers. Each supplier has prices for each of my areas (States). Normally, I’ve used the tab called Combined Bids and done the arithmetic on my own.
Combined Bids
I’d like to make something where I can choose from dropdowns and it give me the price based on the dropdowns I choose.
For instance, if I chose Alabama, Reforestation Specialists, Loblolly, 8x10, and Hoedad on the “Interface” tab it would return $52.06.
"Interface"
Lists
I’ve tried using IF statements in the data validation, but I never seem to get it correct. Thought about a Lookup table but I don’t know.
How would you do it? Any information or help would be greatly appreciated. Thanks so much. I'd be happy to share the spreadsheet as well. I didn't see a place to upload it. Again thanks!
You can create a drop down list using Data Validation
and then get the value using the VLOOKUP function
This is something you might want to look into.
I am trying to figure out a way to add data to an existing table, where it can identify a value (like name or ID#) and add in a new piece of data into that row for the individual.
See Pic 1: The person using this guide will click "yes" or "no" if they want to move the person forward. I want to record that yes/no in their database. (Note: each new candidate gets their HR Guide with their name on it. If you are listed on the Short list (see pic 2), you will get a HR Guide created for you. So the name of the tab is unpredictable, which is why things like vlookups or other formulas will not work.)
Here is the image of where I want the input to go. Based on the name matching in column C, I want it to input the Yes/No in Column I
I have no VBA code to share as I have no clue where to start. I have looked around trying to find a solution or something to work off of, but cannot find something that is close enough for me to figure it out (usually that works for me, but not this time...). So any help/direction you can provide would be VERY helpful! Thanks in advance.
I'm wondering if it is at all possible to use Data Validation in Microsoft Excel (2007) without creating a Drop Down list.
I'm currently creating a seating plan for work. I want the user to have the ability to freely type in the name in a cell (Desk). There are 7 teams of approximately 10-12 people. so finding a name in a long list would take up too much time. however the name typed in the cell has to be be an exact match from a list stored else where in the spreadsheet. The reason for this is i use a formula to show if everyone has been seated or not.
if a name is typed in and its not an exact i would like for an error message to pop up.
Any ideas if this is even possible?
im open to VBA. but a complete noob when it comes to VBA.
Thanks in advance.
Tom
To get DV without the drop-down, use the Custom > Formula option. Here is an example:
Only the set defined by the formula will be accepted and no drop-down will appear when the cell is clicked.