I am trying to create a Heat Map for Risk in a spreadsheet that auto populates. Very simple dataset and I can convert my values to numeric if that makes the graph easier. Data Set is basically as follows:
Column 1 - Risk Description
Column 2 - Impact (score of 1-5)
Column 3 - Probability (score of 1 to 5)
Column 4 - Risk Indicator (Col 2 x Col 3 to give score out of 25.
Looking to create Heat map with upper right being my highest risk and lower left the improbables or low impact. I should mention that my VBA is as good as my Latin skills, i.e. Zero! so looking for a way of doing it through excel, either suggested or inbuilt charts.
Trying to find the Row(Window) and Column(Percentile) of the highest value in the grid. The value in Cell:AF7 finds the value in the grid(Heat map).
Once we calculate the Max value in the grid. We set the number of data points Above/Below in Cell:AI7 (This we enter in manually).
We then go into the Cells in the grid(Heat map), and then calculate the sum of the cells above and below the maximum number (which is returned in Cell AF7) dependant on the number of Data points Above/Below we are looking for. An example of this is done in Column D to M Rows 51 to 61. The sums are calculate of the cells above and below our maximum value in the grid.
We then want to return the maximum value of the sums of the data points above and below and then return the Percentile and Window Value.
As an example. Our max value on the heat map is 35.30026 and we want 2 Data points Above/Below. Then the maximum sum is 39.12358. Thus the percentile is 0.62 and the Window is 28.
Does any one have VBA code that draws a heat map or color map based on input data. I would like to vary colors & size of the boxes based on input variables. Something similar to this example would be neat -- [url]
I need to create many XY charts in a VBA macro. For each chart, I need to select a particular column for the X dimension, and a particular column for the Y dimension. When I use a named range to define the X and Y columns, my macro works fine for those instances when the X comes first. However, if my desired Y dimension comes first, I cannot find a way to correctly select these.
The context is such that my spreadsheet always has the same data fields in the same columns, but the numbers of rows vary. In addition, I need to dynamically select which rows to use, based on the values in the columns to be plotted. I’ve figured out how to do this within the macro, except for those instances when the Y column comes before the X. An example when this works:
I have a spreadsheet that calculates Reward to Risk Ratio for the stock market investing. The formula is Target Price - Entry Price / Entry Price - Stop out Price.
The problem is the ratio often comes out to something like 3/4 or 7/8.
Is there a way to reduce the result down so that the first number is always a 1 to make it more clear but still maintain the ratio. For example, 1-1.3, or 1-7.8, etc.
I am looking up a risk matrix to return the risk rating... it is very simple, it works on one sheet, but on a different sheet (looking up different data, but same basic format) it returns exactly the opposite rating.
My formula is: =INDEX($G$6:$K$10,MATCH(I19,$G$5:$K$5,0),MATCH(J19,$F$6:$F$10,0))
Here is F4 to K10
I have data validation on I19 and J19 based on the cells below
Consequence
Priority Very Low Low Medium High Very High
[Code] ..........
BUT... when I put Very Low and Very Low in the two cells (I19 and K19) I get Very High as the return.
I have an issue creating a PDF of more than one sheet. Only top left corner of sheets are shown in PDF. Creating a PDF of a single sheet works perfectly. I have attached the result (2 pdf-files) and the original Excelfile.
I am unsure if this is supposed to be in the PivotTable or VB section, but given it is VB code I expect here is better.
[Code] ......
I can confirm the SourceData exists, and can be used to create a pivot table without error. Only when I try to RUN this code does it kick out saying, "Invalid procedure call or argument".
I am tying to build a macro that contains a function to open a closed workbook, create a new tab, select the tab and then paste data into it before closing the workbook.
In a separate macro I will then want to open the workbook again and compare the last two tabs worth of data, to highlight where old data has been removed.
I'd like to create a search bar where someone types text into a field in Sheet1 (in the sample B1), then clicks a macro button to search for that word in Sheet2.
The result should be that the cell containing that word is where you end up.
The search word shouldn't be an exact match for the result, the cell just needs to contain it.
The search bar should also be present on Sheet2, with an additional button for Find Next, so that the user can move to the next result if the first one is not what they're looking for.
I've managed to create a search function with a pop up box using the below but this isnt as effective.
I'm trying to make a macro that creates a button (to run another macro). I'm also trying to make sure this has a specific name, instead of just "Button#". The code I get from recording this is:
On a worksheet i have a list of names in Column A the list length can vary this is why i want to create a userform using VBA. The form just wants a checkbox with name next to it for each name in column A. If the checkbox is ticked I want a 'Y' in Column B next to the corresponding name.
I have wriiten some simple code to create a chart which works fine. I have a problem applying formatting to my chart. I am using the With construct to apply the formatting, but the problem is that the chart name keeps on incrementing from "Chart 1" to Chart 23" etc. each time I run the chart and I get an error message before the With code?
I have a workbook which uses the code below to create a new menu upon opening. I have now used this same code in a second workbook to create a different menu. both work OK on their own However if by chance both workbooks are opened at the same time only one menu is shown. Is there a way I can change one of these to create a second menu if the first one is already there?
I thought this would be a simple task, but i cant seem to figure out how to do this. I have a list with names and its a fixed number of rows, say A1:A200. In the next column, B1:B200, there is either TRUE or FALSE. I want a make a new list with all names with "TRUE" on the same row, without any blanks. How can I do this?
Not sure where the best to ask this is so i'll do it here.
I have a h:mm time which i need to get converted into days/hours/minutes, creating an on the fly phrase of something like "2 days, 4 hours, 32 mins" for example.
eg: 26:45 (hours/minuts) to be converted to "1 day(s), 2 hours, 45 minutes"...
Actual graph will contain a larger/longer X-axis (40 instead of 6 readings), but no more than 2 rows af data (A and B), of which one has a seqenced number af data (row B).
Row B alo has got singular points of data superimposed over the cylinders.
I have got all the numbers ready, but I don't know whether or not it is even possible to create a graph like this.
The cylinders have values up to 45.000 (accumulated in row B), the points (black dots) go from 2 to 6.
If so, I'm having trouble selecting the correct template out of the excel's standard list of graphs.
I am going to be gathering some raw test results soon, and I need to create a percentile for this particular group of results. way to do this in Excel? Or at least point me in the right direction? :o
Is there an easy way in Excel to generate all of the 512 possible combinations of 1 and 0 in a 9-tuple (9 consecutive numbers with each number either being 1 or 0)?