Superfish menu - submenu - get many items to break - menu

I have a long list with subitems which fall into the same category. As the submenu is growing, I want the submenu to break over in listing the sub menu items in 2 columns. Anybody out there knowing the trick how to do that?
see here illustrated my issue:
topmenu item
-submenu 1
-submenu 2
-submenu 3
-submenu 4
-submenu 5
-submenu 6
-submenu 7
-submenu 8
-submenu 9
-submenu 10
I need it to be like this:
topmenu item
-submenu 1 -submenu 6
-submenu 2 -submenu 7
-submenu 3 -submenu 8
-submenu 4 -submenu 9
-submenu 5 -submenu 10
Cheers from Denmark :-)
Jeannine

You can try this using changing the css of superfish menu.
.sf-shadow ul {
background: url("../images/shadow.png") no-repeat scroll right bottom transparent;
padding: 0 8px 9px 0;
width:300px;
}
and in
.sf-menu ul li {
width: 50%;
}

Related

median by date excel

My current (simplified) data set is shown below. It has the date and a column called x.
I want to compute the median for each different date, but still list them line by line, like seen in my desired data set below.
I have tried to combine the median and if function to do this, however I can't get it to work line by line like my desired result below.
How can I achieve this on excel? Thanks.
current
desired
date x median
1/01/2021 6 8
1/01/2021 8 8
1/01/2021 9 8
1/01/2021 5 8
1/01/2021 8 8
2/01/2021 4 7
2/01/2021 4 7
2/01/2021 7 7
2/01/2021 7 7
2/01/2021 9 7
3/01/2021 8 4
3/01/2021 2 4
3/01/2021 6 4
3/01/2021 5 4
3/01/2021 2 4
3/01/2021 3 4
4/01/2021 5 3.5
4/01/2021 2 3.5
5/01/2021 8 4
5/01/2021 4 4
5/01/2021 3 4
Try below array formula. Array formula needs to enter by CTRL+SHIFT+ENTER.
=MEDIAN(INDEX(B:B,MIN(IF($A$1:$A$22=A2,ROW($A$1:$A$22),""))):INDEX(B:B,MAX(IF($A$1:$A$22=A2,ROW($A$1:$A$22),""))))
If you have Excel-365 then can use simplified formula like below.
=MEDIAN(FILTER($B$2:$B$22,$A$2:$A$22=A2))

VBA Excel - Sort a daily delivery manifest into groups based on complex rules

I am trying to come up with a way to sort my Excel-Table. I wrote a very basic VBA to do this when it was a random sort only. Now there's complex parameters/rules I have to meet and it's way outside my skillset.
The problem: I receive a daily file with a list of items via shipments like the example below. The list can have as few as 1 and as many as 24 items. I have to sort these by restaurant.
Example Original List
ITEM SHIPMENT
Oranges 1
Apples 1
Grapes 1
Pears 2
Pork 3
Chicken 4
Rice 5
Peas 5
Beans 5
Water 5
Corn 5
Milk 5
Eggs 5
Salmon 6
Tofu 7
Juice 8
Cheese 8
Salt 8
Pepper 9
Onions 10
Oats 11
Barley 11
Kale 11
Chips 12
The items need to be sorted out to 6 restaurants and there are complex rules:
Overall Rules
No Restaurant can have more than 1 item from a shipment
No Restaurant can have more than 4 items
Sorting Rules
Restaurant 1 always gets the first two items (Items 1-2)
Restaurant 2-5 evenly gets the next 16 items (Items 3-18)
Restaurant 6 gets the next 2 items (Items 19-20)
Restaurant 1 and 6 then evenly get the last 4 items (Items 21-24)
If there are more than 6 items in a shipment (more items than restaurants) the extra items stay in the warehouse.
The Overall Rules override the sorting rules. For example in our example list Restaurant 1 cannot have both Oranges and Apples since they are from the same shipment so the sort changes.
Example Sort
Restaurant 1 Shipment
Oranges 1
Pears 2
Rice 5
Kale 11
Restaurant 2
Apples 1
Peas 5
Salmon 6
Salt 8
Restaurant 3
Grapes 1
Beans 5
Tofu 7
Pepper 9
Restaurant 4
Pork 3
Water 5
Juice 8
Onions 10
Restaurant 5
Chicken 4
Corn 5
Cheese 8
Oats 11
Restaurant 6
Milk 5
Barley 11
Chips 12
Warehouse Items
Eggs 5
Looking at it as a whole now I'm not even sure this is possible and I have no idea how to go about doing it. If anyone has any input I'd love to hear it. Thank you so much for your help.

Pull Values from a Table in Excel

I am working on creating a user friendly character sheet for the new Pathfinder Playtest in Excel. I have run into an issue with a section and I have come here for help, not sure if it's the right place.
I want to have a cell return a value from a table (below) based on two other cell's values, e.g., if A1=19 and B1=4th it would pull the number from the appropriate area (3 in this case).
1st 2nd 3rd 4th 5th 6th 7th 8th 9th
1 2
2 3
3 3 2
4 3 3
5 3 3 2
6 3 3 3
7 3 3 3 2
8 3 3 3 3
9 3 3 3 3 2
10 3 3 3 3 3
11 3 3 3 3 3 2
12 3 3 3 3 3 3
13 3 3 3 3 3 3 2
14 3 3 3 3 3 3 3
15 3 3 3 3 3 3 3 2
16 3 3 3 3 3 3 3 3
17 3 3 3 3 3 3 3 3 2
18 3 3 3 3 3 3 3 3 3
19 3 3 3 3 3 3 3 3 3
20 3 3 3 3 3 3 3 3 3
I have tried using the below as well as just Indexing and I can't figure this out. Any help is appreciated, thanks!
=INDEX(P137:X156,MATCH(B2,O137:O156,1),MATCH(A10,P137:P156,1))
=INDEX(O137:O156,MATCH(1,(J125=P137:P156)*(J126=Q137:Q156)*(J127=R137:R156)*(J128=S137:S156)*(J129=T137:T156)*(J130=U137:U156)*(J131=V137:V156)*(J132=W137:W156)*(J133=X137:X156),0))
Let's say your data starts at A1 like image below:
I Added 2 simple cells where user chooses the row and the column. Both cells use data validation lists related to your data, so no wrong info can be entered.
The formula is:
=INDEX($1:$1048576;MATCH($C$25;$A:$A;0);MATCH($C$26;$1:$1;0))
Hope you can adapt this to your needs.
You can download the sample from Google Drive if you wish:
https://drive.google.com/open?id=1QXFmmEPMtJeiHDjKKM0o6kclpMIzaw_i

Sort a group of data based on a column

I have an input file that contains following data:
1 2 3 4
4 6
8 9
10
2 1 5 7
3
3 4 2 9
2 7
11
I'm trying to sort the group of data based on the third column and get such an output:
2 1 5 7
3
1 2 3 4
4 6
8 9
10
3 4 2 9
2 7
11
Could you tell me how to do so?
sort -nk3r
will sort in reverse order based on 3rd column. Note however, that this outputs
2 1 5 7
1 2 3 4
3 4 2 9
10
11
2 7
3
4 6
8 9
because of the way bash sort functions, and this produces a different result than the output you posted, but correct according to the question.

Excel macro 3D chart

i have the following data in one sheet:
x y offset
1 1 2
1 2 2
1 3 3
1 4 4
2 1 5
2 2 6
2 3 2
2 4 2
3 1 3
3 2 4
3 3 5
3 4 6
4 1 8
4 2 7
4 3 0
4 4 9
and i want to display the offsets in a 3 dimensional way using an excel macro. In other words, here x and y are the coordinates, offsets are the z values. I just want to get a surface/columns over the xy plane. I searched awhile in the internet, but don't find much useful stuffs. Could you give me any hints?
Thanks in advance,
John
If you reformat your data, you will be able to use a regular Excel diagram type (3D columns) to graph the data:
1 2 3 4
1 2 2 3 4
2 5 6 2 2
3 3 4 5 6
4 8 7 0 9
VBA code:
Sub graphData()
Range("D3:H7").Select
ActiveSheet.Shapes.AddChart.Select
ActiveChart.SetSourceData Source:=Range("'Tabelle1'!$D$3:$H$7")
ActiveChart.ChartType = xl3DColumn
End Sub
You would have to set your range accordingly.

Resources