Creating Dynamic Range Based On Test?

Feb 14, 2013

I need to do stats for each month within a set of data. Ie take the min for all data in the month of Jan only and repeat for all other months etc. Is there some way I can set up a Min function to only consider the data belonging to jan for example and have it change and only consider Feb, then march.. etc Seems like it would be easy to just do this manually but there is a large timeframe over which data was collected so would take forever.

Have attached sample of data. rainfall.xlsx‎

View 4 Replies


ADVERTISEMENT

Creating Named Range Taking Avg To Date Of Dynamic Range

Jul 15, 2014

I have a column of data that keeps getting new information in it. what i need is a named range that i can use for a chart, first point in the named range will be the first value in the column, second point will be avg. of point 1 and 2, then 3rd point will be avg. of 1,2,3 etc.

View 1 Replies View Related

Random Generator For Creating A Test

Jul 27, 2014

I am looking for a product that uses excel to create a random test form a bank of questions. I have 50 questions in all and I need a random test of 35.

I can and have messed around with the following. Excel 2012
A
B
C
D

1
Random #
Test Number
Small-Sort
Random Question

I could even shorten it a bit by placing like this. MATCH(SMALL($A$2:$A$4,B2),$A$2:$A$4,0). Of course this is only the start and it would have in column B 1-50 and in column C&D 1-35 for the selection process. Then I was going to set up on sheet 2 my list of questions 1-50 and my idea was to use 1.1, 1.2, 1.3, & 1.4 for the answers to question 1 and then vlookup. so that when and if question 1 is part of the 35 random then I could pull the answers over as well. but as I started the 'animal' will get bigger and bigger fast.

View 1 Replies View Related

Excel 2003 :: Dynamic Chart For Test Scores

Jun 5, 2014

I have 3 test scores for each student. Currently, I have 3 students.

For example :

John 95 90 85
Cindy 50 60 100
Dan 87 86 90

I have a chart that that plots 3 lines, one for each student.

However, I want the chart to dynamically update if there's another student. In other words, I would like the chart to add another series while the legend updates to include another student.

I am trying to do this in Excel 2003.

View 2 Replies View Related

Creating Arrows Based On Range Values

Sep 22, 2006

I'm trying to create a VBA macro that will compare two worksheets. If an item has "moved" then I want to draw an arrow on the new worksheet of where (the cell range) it was on the previous worksheet, to where it is now. Using Record Macro, I've noticed the coding looks like: ActiveSheet.Shapes.AddLine(276#, 60.75, 309.75, 60.75).Select

How do I make sense of these numerical values? Is there a way to input cell ranges? Is there anything besides drawing arrows I can represent this phyiscally? (as opposed to with values)

View 2 Replies View Related

Dynamic Range Based On Date?

Jan 30, 2013

I have data in a spreadsheet similar to the below.

[Code] ....

What I need to do is created a named dynamic range based on the current month which will contain all rows/columns within that range. Ideally I need it to create the range for the current month so I can then use this as the data source for a pivot table.

I believe it is something to do with index and match functions?

View 1 Replies View Related

Set Dynamic Range Based On Values

Jul 20, 2009

I would like to create a dynamic range based on a cell value. However, the cell reference may vary because the numbers of entries in the workbook can vary.

In addition to that, after the first range (eg. A1:A10), I would like to create a second range after the first (eg. A11:A20).

View 2 Replies View Related

Copying A Range Based On A Dynamic Value

Aug 16, 2007

I have a question that I am not able to answer.

Basically I have a worksheet with the following:
C4 -a cell where a user can input a number
the rest of the worksheet is data in a normal fashion.

I am seeking a macro that will select & copy cell G6 through whatever the value of C4 is. This selection would be a variable range with the offset being whatever is typed into C4.

Ex:
If the value of C4 is 5 then I would like G6:G11 to be selected and copied.

I am aware of offset, but don't know how to implement it in such a dynamic way.

View 9 Replies View Related

Dynamic Range Based On Column Order

Jul 31, 2014

I want to refer to columns by column order (i.e. A=1, B=2, etc.)

I want to sum a range for dynamic columns and fixed widths (i.e. B2:B5 or F2:F5, etc).

i have C_N as variant and i am trying to write the formula but desperately getting syntax error.

Code:

Range("M5") = WorksheetFunction.Sum(Range(C_N& "2" : C_N&"5")))
i tried before to make another easier formula like
Code:
=Range("N5:N" & LastRow)

and it worked.

View 2 Replies View Related

Select Dynamic Range Based On Non-empty Cells

Aug 7, 2009

I require code to identify the last row in column 'A' that contains data, and then to select every row up to that one, and each column up to 'H'. My data begins on row 3, and the rows with data varies from row 7 through 120. The columns with data is constant so there is no need to test in that direction.

View 2 Replies View Related

Naming Dynamic Range Of Cells Based On Heading

Apr 15, 2014

I need to name a dynamic range of cells. The only constant is the column - H, and the heading "MRC".

MRC column in a table represents an array formula. Unknown is the row where it is going to show up and the number of rows that this array formula will take. I need to name this range (active cells based on the array formula) but do not know what row does it start with and how many rows will it take.

It is not the last table in column H either but there are 2 empty rows before the next table.

Trying something like that...

=========================
Set aCell = Range("H:H").Find(What:="MRC", LookIn:=xlValues, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False)
If Not aCell Is Nothing Then

aCell.Offset(1, 0).Select
========================================

That's how I select the first cell in the range. Not sure how to select the whole range and name it ..
ActiveCell.End(1xDown) ?

View 3 Replies View Related

Dynamic Named Range Based On Last Date In Column

Mar 9, 2008

I want to define a dynamic named range based on the last date in a range (AE4 down). Unfortunately there are gaps in this range where no date is in a cell.

View 5 Replies View Related

Dependent Dropdown Lists Based On Dynamic Data Range?

Apr 19, 2013

I have data that resembles (I have also attached an example workbook as well if that is easier)

Column A.................Column B................Column C..................Column D.............Column E................Column F
Year.......................Quarter...................Month..................Product-Code...........[data A]................[data B]
2013.........................Q1.........................Jan........................SD-21...................13%......................0.05%
2013.........................Q2..........................Apr........................NV-12...................7%.......................6%

etc

I am hoping to have, on another sheet, a series of dependent drop boxes- Year, Quarter, Month, SKU- which after selecting then displays 'dataA' & 'dataB'.

So you could select- List 1: 2013 ----> List 2: Q1 ----> List 3: Jan ----> SD-21.................and then 13% and 0.05% are displayed.

The data will be continuously added to and so needs to be based on a dynamic data range.

I know that a pivot table is the perfect way to do this, however my bosses have requested that I do not use that format so it is easy for all staff to access.

So I think I need to construct some sort of dashboard sheet, I have experimented with OFFSET from other posts, but so far have had no joy.

View 14 Replies View Related

Test Two Cells And Set A Third Cell With Different Values Depending On Test Results

Aug 21, 2013

I am trying to determine Long Term Gain (LTG,) Long Term Loss (LTL,) Short Term Gain (STG,) Short term Loss (STL,) or No Loss nor Gain (NGL)testing two cells (A1 and B1)and setting a third cell (C1) to the text LTG, LTL, STG, STL, or NGL depending on the results of testing cells A1 and B1.

A1 represent a number of years and B1 represent gains or losses (negative)in dolars.

The way I see the logic is as follows:

If cell A1 or cell B1 are either one of them equal to 0, then it is neither a Gain nor a Loss (NGL.)

If cell A1 is greater than or equal to 1, then it is Long Term; else, if A1 is greater than 0 and less than 1, then it is Short Term.

On the other hand, if cell B1 is greater than 0, then it is a Gain; if B1 is less than 0 (a negative number,) then, it is a Loss.

I need to find (if it is posible in Excel) one formula to test the two cells for posible outcomes:

If A1 = 0 then C1 = NGL
If B1 = 0 then C1 = NGL
If A1 >= 1 and B1 > 0 the C1 = LTG.
If A1 >= 1 and B1 < 0 the C1 = LTL.
If A1 < 1 and B1 > 0 then C1 = STG
If A1 < 1 and B1 < 0 then C1 = STL

View 3 Replies View Related

Creating A Dynamic Report Tab

Mar 12, 2009

I am trying to generate a good looking, dynamic report tab that runs off another tab that contains ugly raw data for website traffic. This should then drive a couple of charts based on the parameters I specify.

The Raw Data

This is daily data for keywords that we advertise on through Google. Associated with each keyword are various fields:Clicks
Cost
CPC (Cost divided by clicks)
Quotes
Sales
CPQ (cost divided by quotes)
CPS (cost divided by sales)
CTQ (quotes divided by clicks)
QTS (sales divided by quotes
CTS (sales divided by clicks)
Avg Pos

There are maybe 30 keywords - each with daily information for the above fields.

The layout of the raw data is:

Column A: Date
Column B: Keywords
Column C: Clicks

and so on.......

The Report

This is the nice looking report where we can pull in the required bits and bobs in a nice format. Because some of the above fields are calculations I've not been able to achieve what I need using a normal pivot report.

What I would like to be able to do:

Populate a summary report using the above raw data but be able to specify certain things such as:The date range I want to see data for
The specific keyword(s) I want to see data for

For example v- we are feeding the daily information into the raw report each morning. One day I might want to see summary stats for a particular data rang on maybe 3 of the keywords so I'd somehow like to select appropriate date ranges and keywords from drop down lists and then I see the summary stats for the appropriate date range broken down by each keyword.

I'd also like a total underneath this report to add up or calculate the totals and averages for the data based on the parameters I specify.

Finally, given all of the above, I would like to run a dynamic chart based on the raw data but taking into account the filters I specify on the slick report sheet.

So....if I set the date range as From: 01/03/09 to 12/03/09 I can see daily clicks, costs etc for the particular keywords I specify in the drop-down menu or what-have-you

View 14 Replies View Related

Creating A Dynamic List?

Mar 28, 2013

Currently I have a spreadsheet with the following columns.

A - company name
B - Company expense date
C - company expense amount

There are many different companies, and each company has multiple rows for different expenses.

How would I create a drop down box, where I can select the company name and have excel create a list of all the expense amounts for that company?

View 3 Replies View Related

Creating Dynamic Cell References?

Mar 8, 2014

I have a simple range, say, A1:G1. I want to have another cell, H1, reference whatever rightmost cell in the range contains any data. All the cells in the range will be using text.

So if B1 contains data, I want H1 to show what's in B1, but if data is inputted into F1, I now want H1 to show what's in F1.

View 6 Replies View Related

Creating Dynamic HTML Files

May 9, 2012

My application has a information that is constantly displayed to operators. In one of the non-active sheets, is a log of what is happening and I need to export this log in a (prefereably) .html format to display on an Apache web server.

The monitored sheet always have to be visible, and I do not want any dialog boxes popping up, so the Sheets("log") has to be exported under this criteria... Only need the first 1010 rows exported to the html file.

Would all of that be possible?

View 7 Replies View Related

Test For Optional Range

Aug 25, 2009

I need to test whether an optional Range has been passed to a UDF. IsMissing(RangeName) always returns False regardless of a range being given or not. RangeName exists as an Object that shows a Value of Nothing and Type of Range. I have not found any test that will indicate if the Range was passed in or not.

View 4 Replies View Related

Test If Range Variable Set

Apr 8, 2008

I'm trying to test whether a variable, a range in this case, has already been defined. If not I want to Set it to a specific cell.

I tried:

If rng Is Nothing Then
Set rng = Range("B14")
Else
rng = rng
End If

View 9 Replies View Related

How To Name A Dynamic Range & Make A Validation List (of 2 Dynamic Ranges)

Dec 22, 2009

I have a range which will change in size & in content, & I want this to be a Named Range at whatever size it is.

Reason I want to is because I want to make a Validation List with this dynamic range. I also want a Validation list which lists the content of 2 or more dynamic ranges which may or may not be on the same worksheet - is this possible?

i.e.
First dynamic range: called "Milestones" at A11
Second dynamic range: called "Activities" at A25
& make a Validation list that will list content of both

View 9 Replies View Related

Creating Dynamic Top 10 List And Ignoring Duplicates?

Apr 23, 2014

I have a list of names and an associating number with those names. I'd like to create a dynamic top 10 list, but my problem is that I have duplicate values, here's a sample:

[Code].....

I tried to use LARGE and INDEX to create a top ten list like this:

=LARGE(Names,ROW(1:10))

=INDEX(Names,MATCH(T2,Count,0),1)

But, when the list comes out, it shows only the first entry with a duplicate result:

[Code] ....

How I can get it to grab the second "Name" with the same value as the first?

View 6 Replies View Related

Creating Dynamic Charts With Multiple Filters?

Mar 2, 2013

building dynamic charts and filters, so What I'm hoping to accomplish to build a bar chart that looks like the following:
________________________________________________
Filter: State | Filter: Region | Filter: Segment |

Revenues |||||||||||||||| + (% of Total Rev)
COGS ||||||||||| + (% of Total COGS)
Margin |||| + (% of Total Margin)
-------------------------------------------------------

My data is built in the following format on a different tab than the proposed chart:

State: | Region: | Segment: | Account: | Amount: |
MN | Midwest | Major | Revenues | $$$
MN | Midwest | Major | COGS | $$$
MN | Midwest | Major | Margin | $$$
MN | Midwest | Major | % of Total Revenues | %%%
MN | Midwest | Major | % of Total COGS | %%%
MN | Midwest | Major | % of Total Margin | %%%

[Code] ........

It seems like it'll be easy to use a pivotchart, but at the same time, there's a lot of formatting to do, which makes it tricky, especially if I have many states to deal with and the multiple combinations.

View 4 Replies View Related

Value Test Of A Range Of Cell And If Statement?

Feb 17, 2012

I am trying to build a macro that test for the value of each cell of a range (in a column), and if found, then the value of the cell of the same row (another column) will be set to 1. If not, then the macro writes a formula to get some data from BBG (this part is ok). this is what I have done so far but I have an error message, telling me "Not Else with out if" .

Code:
Sub Fx()
With Worksheets("DivRelease")
Dim LastLig As Long

[Code].....

View 9 Replies View Related

Test For Existence Of Text In Range

Mar 10, 2009

I d like to test for the existence of text in range D5 to D10000 for example

I may have this 49000897890VGN21SP. VGN21SP is text so I d like to spot it

it may also exist on its own VGN21SP can you suggest me with a macro?

like this one

Sub DeleteNAs()
Dim C As Range
For Each C In ActiveCell.CurrentRegion

If C.Text = "#N/A" Then C.ClearContents

Next C
End Sub

View 9 Replies View Related

Test If Named Range Exists

Sep 7, 2007

Is there a way to check if a named range exists before I run a piece of code? I created a new file that has need for all the old file's ranges plus a couple more, and I want to use the same macro for both. So on the first file I just want to say, if these other named ranges are there, go ahead and do his other thing.

View 6 Replies View Related

Perform Conditional Test Based On Sum Row Of Cells Using VBA?

Feb 6, 2014

In the past I have used VBA script to change column with size based on cell values as per follows:

[Code]....

Now I wish to change row size in a similar fashion only the criteria will be a maths function rather than a string in a single cell. The maths function will simply be a sum of cells in a row. I will need to test whether or not the row ads up to a number greater than zero.

To illustrate what I am trying to achieve I have (poorly) written out a rough attempt at the code below:

[Code] ....

I am unsure how the syntax works for this, I considered defining the range as a string first so I could test the value of a single variable (by defined name) rather than directly referencing the row of cells in the formula. As this code needs to be repeated many time for many rows the simplest solution would be b.

View 7 Replies View Related

Offset Formula - Creating Dynamic Line Chart

May 28, 2014

I am trying to create a dynamic Excel line chart.

All is well, except for my x-axis (which is a text axis). It currently looks like this: Dynamic axis.jpg

I am using the Offset formula. The formula for my x-axis is =OFFSET(Worksheet1!$D$4,0,-3,COUNT(Worksheet1!$D$4:$D$36)). This is to show the axis if cells in Column D are filled up appropriately.

However, in the cells containing the axis name itself, this formula is used =IF(D9=0,NA(),'Worksheet2'!A6). I've tried removing the formula from these cell, but that didn't solve the problem.

View 5 Replies View Related

VBA - Creating Pivot Tables In New Sheets Using Dynamic Objects?

Oct 29, 2013

I am trying to solve in VBA how to create pivot tables in new sheets using objects instead of relying on the sheetcounter, which errors out.

I found an old Tip on Mr. Excel: Excel Create and name a new worksheet with VBA

But I can't figure out how to apply the object to the rest of the script. Here is what I have so far:

Sub Macro2()
'
' Macro2 Macro
'
Dim WS As Worksheet
Set WS = Sheets.Add
'

[Code]....

View 1 Replies View Related

If Range Contains: Range = Fail Then "test Fail", Else "test Pass"

Feb 12, 2009

I have a range of data that contains can contain either a pass or fail. what I require at the bottom of this range is a formula that says 'if any one of the range = fail then "test fail", else "test pass"'

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved