Scatter plot without blank values [Excel] - excel

I am trying to create a scatter plot with the y values stored in the y1,y2,y3 columns. The objective is to obtain a color for each column. This works fine. My problem is that blank values are also plotted if the column is computed with an equation. Concretely, E2, E3 and E4 should not appear in the plot.
y1 and y2 are pure values, whereas y3 is computed with a simple if condition. For example, E2 cell is defined as =IF(C2="", 40,""). I also tried to check the 'Hidden and Empty Cells' option, as suggested in this post, but nothing happens.
\ | A | B | C | D | E |
1 | x | y1 | y2 | y3 |
2 | 1 | | 14 | |
3 | 2 | 6 | 45 | |
4 | 3 | 12 | 6 | |
5 | 4 | 4 | | 40 |

Related

Formula to multiply all rows in a column after adding 1 to each one of them, and subtracting 1 after all of the products

How can I automate this formula to a large number of cells without needing to manually summing them?
I want to add 1 to each row in a column and then multiply it by the other rows with the same criteria, and after all, I want to subtract 1 of the total value, like this:
=(C2+1)*(C3+1)*(C4+1)*(C5+1)*(C6+1)-1
google-sheets only:
PRODUCT of C2:C6+1 enforcing array context with ARRAYFORMULA:
=ARRAYFORMULA(PRODUCT(C2:C6+1))-1
THis should work:
=EXP(SUMPRODUCT(LN(C2:C+1)))-1
You can do this using two helper columns, where the first one contains the product, and the second the product minus one:
| A | B | C | D | E
==+===+===+====+============+======
1 | | | | 1 | =D1-1
2 | | | x1 | =D1*(C2+1) | =D2-1
3 | | | x2 | =D2*(C3+1) | =D3-1
4 | | | x3 | =D3*(C4+1) | =D4-1
5 | | | x4 | =D4*(C5+1) | =D5-1
Dragging the formulas down should fill them in as expected. Column "E" contains the information you're looking for.

Concatenate values based in 2 cell values

I want to obtain a summary of the units of each class per group, but I don't know how to do it. I tried different options but this is breaking my mind and I prefer not to use a macro, just a formula.
This is an example of what I want:
Class | Group | Units | Summary
------|-------|-------|---------
A | G1 | 1 |
A | G1 | 2 |
A | G1 | 3 |
B | G1 | 4 | A:"1,2,3";B:"4"
B | G2 | 5 |
C | G2 | 6 |
C | G2 | 7 | B:"5";C:"6,7"
C | G3 | 8 |
A | G3 | 9 | C:"8";A:"9"
A | G4 | 0 | A:"0"
If you know how to help I would appreciate that.
Just as #bzimor said - use pivot table. The source is your original table (class, group and units). Then when the pivot table placeholder appears, you put Group, Class and Units in the Column fields. The result looks like this:
Of course, you can format the pivot table to look like you want it.

Getting Summation from a Table, with matching values from another Table in Excel

I have 2 tables created in Excel, which are identical in structure and the column and row names.
The only difference is that the first table has data (for the effort in work days) in it while the second is a reference table stating which milestone each cell belongs to. A sample of these tables is:
TBL1:
| | App1 | App2 | App3 |
| T1 | 32 | 12 | 48 |
| T2 | 40 | 16 | 30 |
| T3 | 56 | 18 | 36 |
TBL2:
| | App1 | App2 | App3 |
| T1 | 1 | 2 | 3 |
| T2 | 2 | 1 | 2 |
| T3 | 1 | 1 | 1 |
I want to collate these values so that I get SUM of 1, 2 and 3
| | Days Summation |
| 1 | =32+56+16+18+36 |
| 2 | =40+12+30 |
| 3 | =48 |
So basically, want to find:
IF(COL_VAL_IN_TBL2=1) THEN SUM ALL VALUES IN TBL1 CORRESPONDING TO THE ROW-COL IN RESPECTIVE
Is it possible to get a formula which I can use to do this without using something like a Pivot Table?
You can use sumif() to do this:
Here it's just looking at table2 values and comparing them to your 1, 2, or 3 and then summing the corresponding cells from your table1
SUMIF will do the trick if I understand correctly:
If you put 1 in A1, then 2 in A2, etc. Then enter in B1=SUMIF(TBL2Range,A1,TBL1Range) and copy down. Where TBL2Range is the address of your table.

How to assing a given value randomly in Excel?

I have 30 peoples waiting for result out of 10. I want to assign each of 30 peoples: 7, 8 or 10 result randomly.
Peoples in excel are:
A1:A30
Random numbers in Excel
B1, C1, D1 //Which means B1=8, C1=7 and D1=10
The random number to keep on:
E1 to E30
To get a random integer in a range, use the randbetween(start,end) function. This will produce a random integer between the start and end parameters inclusively. Since your numbers are not contiguous, you can simply index them and perform a lookup using vlookup(randbetween(startindex,endindex),...) to get a random value from the table.
Check out this Example Excel File I created.
Use the following steps to get your desired result:
List the people in column A
Create a lookup table in Columns G and H
containing your desired result values.
In your result column (column E in the example below), add the formula: =vlookup(randbetween(1,3),G:H,2,false)
Column E will now contain either the numbers 7,8,or 10 for each person.
If you want to generalize this and allow any number of different values in your result lookup table, you can change the formula in column E to: =vlookup(randbetween(1,counta(G:G)-1),G:H,2,false).
Note: The -1 is only needed if your lookup table has a header row.
This will select a random value from all non-empty rows in your result lookup table.
In the example below, I added a header row to row 1, and the people start in row 2, for clarity.
+---+---------+---+---+---+--------+---+-----------+--------------+
| | A | B | C | D | E | F | G | H |
+---+---------+---+---+---+--------+---+-----------+--------------+
| 1 | Names | | | | RESULT | | Result ID | RESULT Value |
+---+---------+---+---+---+--------+---+-----------+--------------+
| 2 | Person1 | | | | 7 | | 1 | 7 |
+---+---------+---+---+---+--------+---+-----------+--------------+
| 3 | Person2 | | | | 7 | | 2 | 8 |
+---+---------+---+---+---+--------+---+-----------+--------------+
| 4 | Person3 | | | | 10 | | 3 | 10 |
+---+---------+---+---+---+--------+---+-----------+--------------+
| 5 | Person4 | | | | 8 | | | |
+---+---------+---+---+---+--------+---+-----------+--------------+

Copying data from one cell to another based on the value of another cell

I am trying to make a heat sheet that updates names according to position.. The Top 2 from each heat go to round 2 and are seeded into heats according to position..
So H1 R1 winner goes go R2 H1 So in Example below I need to move Deee to R2 H1
So Heat 1 Round 1 would be
|COLOUR | NAME | POSITION|
|Red | Abbb | 3 |
|White | Bccc | 2 |
|Yellow | Deee | 1 |
|Blue | Fggg | 4 |
Round 2 Heat 1 would be
|COLOUR | NAME | POSITION|
|Red | Deee | |
|White | Bccc | |
|Yellow | | |
|Blue | | |
EG If position in (c2:C5) = "1" then name in "b2" is copied to "g5"
Don't know if this is what you are looking for. Just an idea...
Assuming your first heat table is in columns A to C with first row being header and the next rows data and column 3 holding the position.
You could have a second heat table with e.g. column "E" holding the new position numbers and column "F" the follwing formular
=OFFSET($A$1;MATCH(E1;$C$2:$C$5;0);1)
shows the name in the new heat table according to position in the original table.
A | B | C | D | E | F
Colour | Name | Pos | |new Pos|-formular-

Resources