Libre Office - calculation to multiply two numbers together - libreoffice

I have a monthly spreadsheet with varying numbers of hours per day. I want to multiply each of the daily hours by 20 each time and create a formula so it does this automatically.
I can't work out how to do this so that the formula copies across each time and automatically gives the hours x 20. Can anyone help please?

Let's recreate your example in Calc, starting with an empty sheet. In cell A1 enter "NUMBER OF HOURS". Put 6 in A2, 4 in A3, and 8 in A4. Easy so far, right?
Now, click on cell B2. Press =, click on cell A2, and then enter *20 and press Enter. The result should show as 120.
Next, click again on cell B2. See the dark square in the lower right hand corner of the cell? Click and drag it down to cell B4.
Here is the result:
NUMBER OF HOURS
6 120
4 80
8 160

Related

Tableau Percentage calculation

I am learning Tableau using sample dataset Sample Superstore. I am trying to find out, For a given period let us say January 2012, what percentage of sales were shipped using a specific product container (e.g. Jumbo Box)
When containers are in Rows, I get 2.22% and when I flip row to column and vice-versa I get 9.17%. Would appreciate some inputs to clarify this.
2.22%
9.17%
When you use table calculation the values will differ according to the viz and what type of calculation you have used. For example table down will calculate from top to bottom and table across will calculate from left to right. Like this you will see many other options for calculations.
In below example I have used running total with table across that is direction from Left to Right column values (2014,2015,2016,2017,2018).
Example:
Image1 - Original Data(without table calculation)
Data with table calculation - running total(table across)
In below image, Left to Right values are Ship Dates against Segments. Look at the Yellow color highlighted row. Year 2015 for Consumer Segment the sales value is 40,656 but in the original data(Image1) it is 24,635. The reason it is showing 40,656 is because table calculation is performed with running total by table across(left to right), so the original value 24,635 is added with previous Year's(2014) value 16,021. Hence 16021 + 24635 = 40656. It means Left value(16021) is added with the Right value(24635). This pattern will continue till the right most value.
Image2
Columns and rows are switched
In below image(Image3) Left to Right values are Segments against Ship Dates. The Columns and rows are switched. The value of Corporate Segment for the Year 2014 is changed to 25950(blue circle) because the left side value 16021 is added with the original value 9929(Image1).
Image3

Create Conditional Format for Row 1 and Want to Copy Down?

We have a spreadsheet of our locker combinations for our padlocks we issue to students (sample picture below)
In row 2, I set a CONDITIONAL FORMAT for CUSTOM FORMULA for cell C2 as =B2=1 to turn that cell Yellow. I can repeat for cells D2, E2, F2 and G2 so that if the head custodian puts in to use combo 1, 2, 3, 4, or 5 that then the correct cell will highlight.
My problem is, how do I COPY that Conditional formatting down to the next rows so that the formula in the "custom formula" changes to work for B3 and B4 and B5 and so on?
I understand I can highlight and copy my first row and then PASTE SPECIAL > CONDITIONAL FORMATTING but the formula stays locked on for the first row of information rather than changing to the current row. Maybe I need to use a different formula?
The Paste Special > CONDITIONAL FORMATTING does make the formula copied from one row work in other rows. Was thrown off by the formula not changing and still showing the original row but it works.

Tableau Public, Box Plots: combine 4 rows into 1 with 4 plots per month

I have a Tableau Public sheet with 4 years of data.
Each day has a value, and I am showing those daily values as a box plot - one for each month of each year.
Currently it is set up as 4 rows (1 for each year), and 12 columns.
See here:
https://public.tableausoftware.com/views/boxplotsbyyearmonth-dailyvalues/Sheet1?:embed=y&:display_count=no
What I want to do is drop to a single row, and show all 4 box plots side by side within each month, colored by year.
I can't elaborate what exactly I have tried, as I am new to Tableau, and have done a lot of clicking around looking for options, and have tried searching various sites and Google, to no avail.
Is there a simple trick to this, or is it something complex I have to do to?
UPDATE:
I have figured out how to get them lined up correctly, by dragging the year dimension to the columns section, which I had tried, but then I had to reset the other dimensions, and it took.
What I still can't figure out is the coloring.
By dragging the year to the color property, it colors the outliers, which are separate marks, but the box plots are not affected.
When you pull the year field to color it will color the marks (all of them, including the outliers). If you want to change the color of the box plot container you need to select it and right click.
I made some edits, let me know if this is what you were trying to accomplish:
https://public.tableausoftware.com/views/boxplots_0/Sheet1?:embed=y&:display_count=no

Display attributes from item in drop down menu in excel form

Could someone help me with this? I'm relatively new to excel and the VBA environment. What I need to do is create a form with a drop down menu that selects a certain key. Lets say I have the following two spreadsheets
Tab 1: "Cats"
Type Color size weight
Calico white 20 25
Tuxedo black 15 16
Dumb orange 12 22
Tab 2: "Dogs"
Type Color size weight
St Bernard cerulea 125 200
Beagle pink 25 30
Adorable blue 45 50
I'd want to have the "type" in the drop down menu and let's say St. Bernard is selected.
I want a label or cells to be populated with that type's color, size, and weight.
It's essentially a search function. Any help would be appreciated
Filters? Select the table then Click the Data Tab then click on filter (Ctrl + L).

Gantt over time with summed bar

I'm having trouble creating the following chart in Tableau.
I have data that looks like this:
name date count
a 11/10/2012 2
a 12/10/2012 3
a 13/10/2012 2
b 12/10/2012 6
b 13/10/2012 2
b 14/10/2012 3
c 14/10/2012 2
c 15/10/2012 2
And I want to create a bar chart that has the sum of the count on the y axis and time on the x axis. The width of the bar should be the length of the time, like a Gantt chart. Each name has its own bar. Here is an image that shows what I am after.
The bars should overlap if the times overlap.
I have tried various things in Tableau but haven't really got close.
Is this kind of chart possible in Tableau? If not in 7, will it be in 8? I have heard it makes it possible to create some more complex chart types.
A workbook with data can be found at http://community.tableausoftware.com/servlet/JiveServlet/download/188799-12362/Gantt%20over%20time%20with%20summed%20bar.twbx.zip
Thanks for your help,
Andrew
The trick with Gantt charts in Tableau is to put a calculation on the size shelf that calculates the duration of each bar in units of days. See the example screenshot at Tableau example
You also need a continuous date field on the columns shelf to get a horizontal time axis.
In this example, I also did a few more optional things, such as, turned off aggegation under the analysis menu to get a mark per data row, rather than aggegating them, added a discrete date to the rows shelf to make each bar go on a different line (as long as each bar starts on a different date) and hid the column for that start date.