When I place a wikitable in a nested tab on a wikipage, the wikitable seems to break the processing of the tabs and itself. Explanatory image: https://imgur.com/a/2owXEAH.
In the explanatory image you see a nested tab called 'Slayer shops' in the tab 'Merching: collection and conversion'. There is supposed to be a wikitable in the nested tab 'Slayer shops', but instead you see some preceding text which stops at '{' (which is the start of the wikitable code). Furthermore, there are supposed to be multiple tabs after the nested tab 'Slayer shops', but they are also gone.
I was wondering if anybody knows a solution to this problem?
Kind regards,
Jan
The outer tabs are made through:
<tabber>Outer tab title 1=
Content outer tab 1
|-|Outer tab title 2=
Content outer tab 2
</tabber>
The inner tabs are added through:
<tabber>Outer tab title 1=
Content outer tab 1
{{#tag:tabber|Inner tab title 1=
Content outer tab 1, inner tab 1
{{!}}-{{!}}Inner tab title 2=
Content outer tab 1, inner tab 2
}}
|-|Outer tab title 2=
Content outer tab 2
{{#tag:tabber|Inner tab title 1=
Content outer tab 2, inner tab 1
{{!}}-{{!}}Inner tab title 2=
Content outer tab 2, inner tab 2
}}
</tabber>
The problem arises when wikitables are placed in the content of inner tabs:
<tabber>Outer tab title 1=
Content outer tab 1
{{#tag:tabber|Inner tab title 1=
Content outer tab 1, inner tab 1
{|class="wikitable sortable"
!Column title 1
!Column title 2
|-
|Element column 1, row 1
|Element column 2, row 1
|-
|Element column 1, row 2
|Element column 2, row 2
|}
{{!}}-{{!}}Inner tab title 2=
Content outer tab 1, inner tab 2
{|class="wikitable sortable"
!Column title 1
!Column title 2
|-
|Element column 1, row 1
|Element column 2, row 1
|-
|Element column 1, row 2
|Element column 2, row 2
|}
}}
|-|Outer tab title 2=
Content outer tab 2
{{#tag:tabber|Inner tab title 1=
Content outer tab 2, inner tab 1
{|class="wikitable sortable"
!Column title 1
!Column title 2
|-
|Element column 1, row 1
|Element column 2, row 1
|-
|Element column 1, row 2
|Element column 2, row 2
|}
{{!}}-{{!}}Inner tab title 2=
Content outer tab 2, inner tab 2
{|class="wikitable sortable"
!Column title 1
!Column title 2
|-
|Element column 1, row 1
|Element column 2, row 1
|-
|Element column 1, row 2
|Element column 2, row 2
|}
}}
</tabber>
The previous code results in: https://imgur.com/a/RHEUMKP.
Turns out you have to replace | with {{!}} in the tables!
Related
I need help using transpose function in excel. Currently, the values of "GRE" field in my table are spread across columns for each combination of Job category and Annual Salary band. Ideally, the required layout has to contain one row for each combination of Job category, Annual Salary and GRE. Any help is greatly appreciated.enter code here
Current Data Before Transpose -
enter data format herre
Current Result -
GRE
JC AnnualSal A B C D E F
1 11 0 0 2 0 0 0
1 12 0 2 9 0 0 1
3 9 1 0 0 3 0 0
Expect Result -
JC AnnualSal GRE Count
1 11 C 2
1 12 B 2
1 12 C 9
1 12 F 1
3 9 A 1
3 9 D 3
enter image description here
Select cells A2:H5
Select the Data Menu, then From Table / Range
Click OK
Power Query Editor will open
Select Columns A:F
Select the Transform Menu
Select Unpivot Columns, Unpivot Columns
Rename Attribute to GRE
Rename Value to Count
Select the Dropdown Arrow in the Count column and uncheck 0
Select the Home Menu, then Close & Close, Close & Load To...
Click OK
I'm looking for a formula to check in a list of values on EXCEL, first check which values are unique, then getting those values count how many of them exist. Finally I want to appear the top 3 of the values.
Example:
List --------- Distinct ------- COUNT ----- TOP 3
3 -------------------- 1 -------------------------- 1 --------------------- 3
4 -------------------- 2 -------------------------- 3 --------------------- 2
5 -------------------- 3 -------------------------- 4 ---------------------- 5
9 -------------------- 4 -------------------------- 1
3 -------------------- 5 -------------------------- 2
1 -------------------- 9 -------------------------- 1
2
2
3
5
3
2
I want to find after a column that gets me everything in one.
I know how to count them, how to sort them, but when adding the sort and only getting me the top 3 is confusing me. Can't find a good formula all together to return what I want.
Thank you.
Step 1: mark the list and click on the Data tab in the Get & Transfrom Data section on the button From Table/ Range.
(a new window with the query editor will open up showing your list)
Step2: click on Group By on the Home tab within the Transform section (in the newly opened Query Editor window).
Step3: leave the defalts as group by basic and group by IDs (in my example or whichever column name you have). Then give the new column a name and select Count Rows and confirm with OK.
Step4: on the new count column (or whichever name you chose) click the down arrow and select sort descending.
Step5: Right-click on the table icon to keep only the top 3 rows...
Step6: click Close & Load.
Here is the result:
I have two columns Item and ID - refer to the Sample Table. I need a formula in Excel to determine the longest (based on simple length of ID) per item.
Here is what I am trying to extract from the sample table:
Item 1 ABCDABC
Item 2 XXXYZ
I tried index match combination:
=INDEX("ID column",MATCH(MAX(LEN("ID column")),LEN("ID column"),0),MATCH("Item 1" , "Item Column",0))
with ctrl+shift+enter
here are the results:
Item 1 ABCDABC
Item 2 #REF!
Any help will be greatly appreciated.
Sample Table
Item ID
Item 1 ABC
Item 1 ABCD
Item 1 ABCDA
Item 1 ABCDAB
Item 1 ABCDABC
Item 2 X
Item 2 XX
Item 2 XXX
Item 2 XXXY
Item 2 XXXYZ
This will return the correct index:
=INDEX($B$2:$B$11,MATCH(MAX(INDEX(LEN($B$2:$B$11)*($A$2:$A$11=D3),)),INDEX(LEN($B$2:$B$11)*($A$2:$A$11=D3),),0))
A PivotTable is perfect for this, because it will handle ties.
Turn your source data into an Excel Table
Add a new column to your source data, and use the LEN function to
return the length of each item. You only need to add the formula to the top row, and Excel will copy it down using Table notation:
Make a PivotTable out of that Table, and put Item and ID in the ROWS
pane and put Length into the Values pane:
Right-click on one of the cells in the Sum of Length PivotField, and
change the aggregation to MAX:
Click the ID filter dropdown, and select Values Filter > Top 10...
In the dialog box, change the 10 in the to a 1 and click OK:
BING!
...and if two IDs within the same category have the exact same length, the PivotTable shows you both of them:
I'm having a hell of a time doing this...I want the vertical axis to represent how many times an ID appears and the horizontal to be the ID. So in essence the bar represents how often that ID appears in the column.
Any tips?
EDIT: for clarity...I have Column A loaded with IDs - might be 100 or more. I want a bar chart to show me how many times the ID has appeared. Just like below but with a bar going up to the # of times it appeared. I thought this was simple but charts don't seem to work this way. The IDs are going to be different so I don't think countif will work for this as that only works if you have a certain string.
Column A
ID1
ID2
ID4
ID3
ID1
ID4
ID8
ID4
ID5
ID6
ID7
ID1
ID8
ID8
ID1
ID9
ID8
ID10
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |______________________________________________________________
ID1 ID2 ID3 ID4 ID5 ID6 ID7 ID8 ID9 ID10
A PivotChart will do this quickly. To create one do the following:
Add a header to the column for the PivotTable to use
Put the cursor somewhere in your range of data
Go to "Insert" in the ribbon
Select PivotTable
Click OK
Add the field to both Rows and Values
Select the "Analyze" tab in the ribbon
Select PivotChart
Click OK
If the values are showing "Sum of" instead of "Count of", then do the following:
Double click on the header "Sum of [field]"
Change the selection to Count
Click OK
A quick solution: In the following image, I first put the distinct ID's in Column B, then in C1 I entered =COUNTIF($A$1:$A$18,B1), copied it down, then selected columns B, C and inserted a column chart:
The various chart elements can be clicked on and e.g. column width adjusted.
How do I remove duplicates within a row for Excel without using VBA?
What i have:
Row 1: 1 | 1 | 2 | 2 | 3 | 3
What i want:
Row 1: 1 | 2 | 3
If you don't care about spaces and you have the six numbers in cells A1:F1, you can do this in cells A2:F2:
=IF(COUNTIF($A$1:A1, A1) > 1, "", A1)
And just drag it across. For your example, that would result in 1, ,2, ,3, .
First, split cells to columns using [Text to columns] in the [DATA] tab
2: transpose data
3: [Remove Duplicates] in the [DATA] tab
4: transpose data
5: concat cells