Spotfire, filling empty / blank cells with absolute value from another calculated column - calculated-columns

I want to fill a calculated column with the single value determined from another calculated column. So dummy_column2 must equal the single value determined from dummy_column1.

Related

min & max value in range in loop

I've faced huge problem with my macro. I have data that contains colums with quantities and values of stock like this:
What I'm trying to achieve is:
to go through every row until the very last, locate quantity (colums with Q letter) and values (colums with V letters) below 0, then adding these quantities below zero to the maximum quantity within the row and adding these values below 0.
to find values within age category for every row that have no corresponding quantity (see cell B4 as example) and add these values to the maximum value within the row.
Why VBA for something you can achieve with a formula?
Let me show you how I calculate the maximum of a list of cells, referring to a column, whose name starts with a "V":
=MAXIFS(A2:F2,A1:F1,"V*")
Screenshot:
Explanation:
Take the maximum of the values on the second row (A2:F2)
The criteria you need to take into account refer to the first row (A1:F1)
The criteria is that it should start with a "V".

Excel: Return Column Name for column with largest value

I have 3 columns (W:Y) each with their own name (i.e. Fee Structure, Insurance, Spelling/Grammar)
I want to write a formula that references the name of the column that has the largest value. I tried using MAX with INDEX and MATCH but I have been unsuccessful. This is the formula I attempted:
=index(W1:Y1, match(max(W:Y),W:Y,0))
What do I need to do to fix this formula?
You can add a helper-row that calculates the per-column max value with "MAX" formula (GREEN)
Then, add a second helper row with the column indexes for your data columns (BLUE)
with HLOOKUP, determine the column index of the column with max-value
and finally, unse INDEX to get the value of your header column with the max value
Formulas for green cells (assuming picture showing A:E) are
=MAX(B2:B10)
=MAX(C2:C10)
=MAX(D2:D10)
Blue cells are fixed-values
Calculated value (COL-Index) / consider the "FALSE", because values are not ordered - we need an exact match!
=HLOOKUP(MAX(B11:D11);B11:D12;2;FALSE)
and finally, the resulting INDEX:
=INDEX(B1:D1;1;E13)

How do you calculate the Quintile for groups of rows in Excel?

I found a partial answer to this question under How do you calculate the Quintile for every row in Excel?. I would like to derive the same quintile data for each row but I need the quintiles to be based on groups that are determined by a value in another column.
Use this formula:
=MAX(1,ROUNDUP(10*PERCENTRANK($C:$C,$C2,4),0))
Change the value 10 to split into whatever number of groups you need - currently it's making decile groups. Change $C:$C to column with target range of values, and change $C2 to the cell in the first row with target value and autofill down.
Your output will be a split of groups based on the value of 1 being lowest and anything greater higher value in terms of numerical value.
If you mean just row numbers as your ranking criteria, you could insert a new column in A and autofill down numbers that correspond to your row references.

find average for multiple values in rows and columns in Excel

I need a formula to find average for values if column value in 1:1 matches 15 and row value in A:A matches 750 for example,
here is a screen shot for the table
Using simoco's setup you could also use an "array formula" with AVERAGE function, i.e.
=AVERAGE(IF((A3:A17=750)*(C1:M1=15),C3:M17))
confirmed with CTRL+SHIFT+ENTER
Try this one:
=SUMPRODUCT(C3:M17*(A3:A17=750)*(C1:M1=15))/SUMPRODUCT((C3:M17<>"")*(A3:A17=750)*(C1:M1=15))
where
A3:A17 address of values in your column A:A
C1:M1 address of values in row №1
C3:M17 entire target range
First part SUMPRODUCT(C3:M17*(A3:A17=750)*(C1:M1=15)) gives you sum of all values from range C3:M17 where corresponding value in column A equals to 750 and corresponding value in row №1 equals to 15.
Second part SUMPRODUCT((C3:M17<>"")*(A3:A17=750)*(C1:M1=15)) gives you count of all non empty cells in target range C3:M17 where corresponding value in column A equals to 750 and corresponding value in row №1 equals to 15.

How to create result table with vlookup from merged cells

I have this data table and i want another result table. when I write name of state ,result table can show all of company with data1,data2 and data3.I trying use vlookup but because there are merged cells the formula just show first row.
how can I fix problem?
If I'm understanding correctly, you want to set up a lookup range so that when you enter a particular state, you can see the data for all the companies that have data in that state. Here is one way to do that.
The first thing you would need to do is set up three columns to the left of the original table:
The first column holds the name of the state associated with each row of data
The second is an index that counts off the number of data rows in each state
The third combines the first two columns to produce a unique key value for each row in the table.
All the values in these three columns can be assigned by formula. The picture below shows the formulas for the first row of cells A9:C9, which are then copied down through row 27.
The next step is to lay out the new table, which is in cells Q8:U27 in my example.
There are several thing to note about the setup. First, the state that will be displayed is entered in cell Q9, which I've highlighted in yellow. To the left of the table, in column P, I've entered item numbers from 1 to 19, which will be needed to construct the key values for the lookups. The lookup formulas themselves are in cells R9:U27; in the picture, the formulas for the first row (R9:U9) are shown (they are then copied down through row 27).
It's worth taking a moment to look more closely at one of the lookups. Here is the formula for the first company name in cell `R9'.
=IFERROR(VLOOKUP($Q$9&$P9,$C$9:$N$27,4,0),"")
Looking at each of the arguments of the VLOOKUP in turn, $Q$9&$P9 concatenates the state name in cell Q9 with the item number (1 in this case), yielding the lookup value 'California1'. The lookup table is defined as the range $C$9:$N$27 - column C of that range is what the lookup value is matched against. The third argument is the column from which to return a value if the lookup is a match. The number 4 here corresponds with the company name column of the original table. Finally, the last argument is 0 (or equivalently, FALSE) indicating an exact match is required.
Finally, the VLOOKUP function is wrapped inside IFERROR. This catches the #N/A that would otherwise be returned when no match is found, replacing it with an empty string ("").

Resources