Making Cell Range Adaptable

Nov 26, 2006

The following cell formula calls a fixed range of cells to execute the associated User Defined Function. The problem is that the data set sometimes covers a wider range and sometimes a smaller range. The cell formula is:

=Smooth(a,g,bw,Trends!A8,Trends!$A$8:$A$190,Trends!$I$8:$I$190)

This requires going in manually each time and readjusting the ranges for Trends!$A$8:$A$190 and Trends!$I$8:$I$190. ( X and Y values for the function)

Is there a way read the data length and have the cell formula adjust based on the actual data range?

View 9 Replies


ADVERTISEMENT

Making A List Of IDs And Cost Based On Date Range

Jul 14, 2014

I need to make an automated way of extracting a list of IDs and the associated cost by a date range, say 6/1/2015 to 12/31/2015, plus the starting letter of the ID. I need the data to then fill a form where it can be sub-totaled. There are several additional columns of data that are not relevant so I know I can create a pivot table and then filter the data, but then I need to copy and paste the filtered data into the form. Is there a way to do this without me copy and pasting everytime?

I added a test worksheet to show the data and form.

View 6 Replies View Related

Trouble With Date Format When Making One Range Equal To Another

Jun 18, 2009

I am using something like this to copy data from one workbook to another

View 2 Replies View Related

Making 1 Cell Equal Another Cell Including Its Comment?

May 18, 2014

I have a spreadsheet with some cells which return values using INDEX and MATCH to bring back the entire details of a person based on there membership number. However I require the comments to be attached with the returned values. The comments have there image in, rather than just text.

I have found some answers with vba, which do the process, however you had to manually enter the cell, from which the comment was to be copied from, into a pop up box. This involved finding the box myself to then select the box to take the comment from. In doing this I had found and read the comment, which is the is the process I'm trying to bypass.

View 8 Replies View Related

Making Cell Mandatory

Aug 21, 2012

In Column B of my spreadsheet i have a drop down that only allows users to enter "Yes" or "No"

Is it possible to make Column C a required field if "No" is selected in column B.

So basically if cell b4 is "No" then i want to make it manditory that cell C4 is filled out with a reason why.

Same thing for cell b5 then i would like cell c5 filled out before they continue using the sheet. etc.

View 1 Replies View Related

Making Sure Cell Has 'J' Prefix

Nov 23, 2008

i have a cell "h23" that must always start with a "j" or a "J"
the trouble is some of my users are only putting in the number
ie 2345 when it should be j2345 or J2345

View 3 Replies View Related

Making Cell A Hyperlink

Jun 2, 2009

I have a table which as a few columns, the left column is called name and the far right one is called email. The name cells have a drop down list which refers to another workbook with peoples names, when you select a name other cells are automatically populated using the vlookup function such as phone number, email etc. In the workbook it is referencing too with all the data, the email address are like a hyperlink which creates an outgoing mail if you click on it, is there a way to have this in the table as nothing happens when you ckick on the text.

View 6 Replies View Related

Making A Cell Blank

Feb 19, 2007

I have a spreadsheet with about 1000 rows. This is data that I've imported from another source and there are blank rows scattered throughout. I am trying to add columns together, but when I cut and past the sum formula, I end up with a 0 in a cell that should be blank. I've tried various iserror, isblank, isnull, empty functions, but am still getting a 0.

Here my example of one function I've tried:
a b c
1. 50 50 50 =if(isblank(a1:c1)," ",sum(a1:c1)) 150
2. 20 20 20 =if(isblank(a2:c2)," ",sum(a2:c2)) 60
3. =if(isblank(a3:c3)," ",sum(a3:c3)) 0

I would like that zero answer in row 3 to be blank otherwise I have to manually go through all the rows and delete these 0's out or cut and paste the sum function just on the rows with numbers.

View 9 Replies View Related

Making Named Range The Last Active Value Used Within Another Named Range?

Jul 19, 2013

I'm trying to make my named ranges remember the values of the last active cells used within another named range. The purpose of this is to make my charts dynamically change dependant on two criteria selected. My spreadsheet currently updates itself as and when I change the active cell within a single named range, dynamically changing the chart data by using Lookup based on the active cells value. However I want to get away from having several charts showing, I would like to have a single chart which dynamically changes based on a second selection. So the first selection is for a department (Facility) which changes the chart data relevant to that department, the second selection is to dynamically change the chart shown for the pre selected department.

Picture2.jpg

Using the following code when updating just one criteria with several charts

VB:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)

If Not Application.Intersect(ActiveCell, [MeasureType]) Is Nothing Then
[valMeasurePicked] = ActiveCell.Value [code].....

which works fine but I'm not sure how to add a second selection criteria because my code uses Activecell. I thought that the VBA needed to set the last used value of a range as a variable and therefore allow the second criteria to be selected but am not sure how to put it into practice.

View 2 Replies View Related

Get The Milliseconds To Another Cell For Making Some Calculations

Oct 22, 2008

I set the time format to hh:mm:ss.000 to show also the milliseconds.
How can I get the milliseconds to another cell for making some calculations?

View 8 Replies View Related

Making A Cell With A Formula Appear Empty

Mar 16, 2009

I have a chart with blank values in some cases. I have set up the chart to show those values as gaps, which relies on the blank cell being empty. However, my blank cells have a formula along the lines of: if (condition,value,"")

So the chart does not consider them blank, presumably either because the formula is in there, or because "" is not the same as blank. How can I make this cell appear blank for the purposes of the chart?

View 5 Replies View Related

Making Checkbox Be On Or Off Depending Upon Value In Another Cell

Jun 15, 2012

What I would like to to in Excel:

When I leave the current cell,
1. evaluate the contents of the cell I am leaving (essentially determining if it is empty or not)
2. If it is empty, do nothing
If it is not empty (or maybe if it has a number value in it)
3. Then uncheck a box (a check box form control)

In Access, I would enter code in On Leave property. It would essentially change the value in the text box that would be named or have some other unique method of identifying it.

So I have two issues:
1) In Excel, I do not know to make a macro fire upon leaving a cell
And
2) I do not know how to refer to the properties of a specific check box control. that is, there will be many of them in the spreadsheet and I do not see how to name them. Clicking of properties for the check box gave no hint of it.

View 3 Replies View Related

Referencing A Cell And Making A Hyperlink...

Jun 27, 2006

referencing a cell and making a hyperlink...

i'm using the following code to try to make a hyperlink out of a19...?

myhyperlink = Range("a19").Hyperlinks

View 6 Replies View Related

Making A Letter Equal A Word In Another Cell?

Mar 14, 2013

I have this project for work where on one sheet information is put in by typing AF, CF, WF. I need to have Excel read the AF, CF, WF and make that read as the full word. Is there anyway to do that? I can get my boss to have people just put A, C, W

View 8 Replies View Related

Making MsgBox Display Cell Values

Jan 8, 2008

Triggering a message box. one of the worksheets in my workbook is called Update Comments - this is a sheet that contains data in the following format (headers)

B7 = Week Number
C7 = W/C
D7 = Update Due
E7 = Updated By
G7 = Update Comments

I have a formula in column D (beginning D8 and copied down for the year) as follows:

=IF(AND(C8

View 9 Replies View Related

Making Contents Of Cell Blank Upon IF Statement

Feb 10, 2008

I have a conditional IF statement, where I want the content of the cell to be blank if the result of the IF statement is false, ie I want the content of the cell to be as if there were no formula in the cell (this if so that the formula COUNTA(Sheet1!$B:$B) only counts the cells where the result is TRUE).

For example, IF(A1=1,1,"") where A1 1, the content of the cell will have something in it (a space), and won't be blank.

View 9 Replies View Related

Making Cells Automatically Copy Another Cell Color?

Aug 28, 2013

I'm looking for a way to make a cell copy the fill color from an adjacent cell.

in my case, cell A1 is a dropdown menu cell, where each option has a different fill color (through conditional formatting). what i want is to make cell B1 copy the fill color from cell A1 automatically. it may be important the both cells have dropdown menus.

View 3 Replies View Related

Excel 2010 :: Making Chart Title From Cell Contents?

Jan 10, 2014

I am trying to make the contents of a cell into a chart title.I know I can do it like this...

ActiveChart.ChartTitle.Select
Selection.Caption = "=tab_name!R2C1"

However, I am trying to use the same macro on several different tabs in the same EXCEL worksheet. Obviously, I can't have the tab name in the macro. But, I don't get a title at all when I try to remove it like this...

ActiveChart.ChartTitle.Select
Selection.Caption = "=R2C1"
or
ActiveChart.ChartTitle.Select
Selection.Caption = "=A2"

Is this possible? I am (kinda new at) using EXCEL2010.

View 3 Replies View Related

Making A Command Button Visible Based On Data In Cell

Oct 15, 2007

I have a data validation list in cell D11 on sheet "Data Entry" and a command button "btnMultipleProperties" that I only want visible if "Multiple" is selected in "D11" I have the below code in "This Workbook" in VBE but it doesn't work. What did I miss?

Private Sub Worksheet_Change(ByVal Target As Range)
With Sheets("Data Entry")
If [D11].Value "Multiple" Then
btnMultipleProperties.Visible = False
Else: btnMultipleProperties.Visible = True
End If
End With
End Sub

View 8 Replies View Related

Making A Cell Change Background Color Based On If Positive Or Negative Sum Total

Jul 3, 2006

I have excel sheet with colored cells.

Positive cash flow cells all have green background,
Negative cash flow cells, all have red background.

I calculate all the "sub- total" columns into one "total sum" cell. Based on this "total sum" I want the cell background to be red if the total sum is negative, or green if total sum is positive. How do I make the cell change to the proper background color based on whether it's a negative or postive total sum?

View 2 Replies View Related

Excel 2013 :: Making Numbers Display With Color Based On Text Inputted In Different Cell?

Nov 20, 2013

EXPENSE MASTER 2013 sample color.xlsx

I have numbers that will display in column G. I have payment types entered in column E. So if 'C FUEL','FA','C M/C', is entered in column E I want the number in column G to be red.

View 3 Replies View Related

Excel 2010 :: Making Hard Coded Cell Dynamic While Maintaining Original Content

May 16, 2014

I pulled a set of financial statements from a database into Excel. All of the values are hard coded but I would like to make them dynamic, while maintaining the original content. For example, If cell C3 is a revenue figure for 2012 ($1,000) I would like to link it to cell C5, which will be a currency conversion rate (2.0). So I would like cell C3 to read =1000*C5, which would equal 2000, and for cell D3 to equal 2013 sales*D5, etc. I would also like this to go across a specified range so that I can also change operating expenses, taxes, etc over a number of columns (dates) that I define, all linking to the conversion rate for the given year. Having another tab where you link and anchor is an option but I would prefer something in VBA where I can qickly include this functionality with new workbooks that I download.

I am using Excel 2010.

View 5 Replies View Related

Making A Cell Blank Referring To Another Blank Cell?

May 8, 2014

Im currently writing a payroll sheet within excell and trying to write an IF statement to make a cell blank if referring to another blank cell but it is showing the formula is incorrect. Below is the following IF statement that im using;

=IF( F4 <97, AM4*0.8, IF( F4 >=97, AM4*1.1, IF( F4=" ";" "; AM4)))

View 5 Replies View Related

Formula To Compare Sum Of Range To Cell Value And Return Cell Count Of Range Used

Jun 3, 2014

I am trying to find out how many weeks our current inventory will support our sales. I am trying to research formulas that will do this, and coming back with things like OFFSET, MATCH, INDEX but am not certain the best way to put them together to get what I need. I use excel daily, but this is a bit mroe advanced than I am used to

Mini.xlsx

Starting in cell B4, I would like to count how many weeks of Demand can be covered by the specific Available On Hands in row 3 for that week, put the number of "Weeks Covered" into cell B2, and then fill over to the right in row 2. Right now, the values in row 2 are from my own manual calculations, but I would like a dynamic formula that will sum up the values in row 4 up to (but not greater than) the value in B3, give the count of cells that reached that sum (or even better with decimals to show the percentage covered), which I will copy over into B3:B13. Not sure if that makes sense, or if I can explain in a better way. The yellow cells are what I am trying to create a formula for and am currently stuck.

View 6 Replies View Related

Making A Map

Feb 3, 2010

I am making a simple map in excel. I have my floor plan on sheet 1 and the location of product on the floor on sheet 2.

Currently I have some formulas on sheet 1 that link to some sales data on sheet 2, but what I would really like to be able to do is use the search function on page 1 and it give me the location of the products in a given area.

The data is broken up into group location on the second sheet.

View 11 Replies View Related

Making Lists...

Feb 6, 2010

I have four columns containing about 200 addresses.

A Names
B Streets
C Cities
D Phone no.

If I write a name in D1 I want to get the corresponding street, city and phone no. in E1, F1 and G1.

I also want to copy the formula downwards let's say ten times so I can make a list.

If I for example just want to make a list of three names (D1-D3) I want the rest of the fields to stay blank.

View 6 Replies View Related

Making Add-in Macros Available

Aug 2, 2007

I've created an Add-in (.xlam file) in Excel 2007 and installed and activated it (it shows up under "Active Application Add-ins" on the Add-in menu for new workbooks).
I can see the macros and code when I go to the VBA editor, but the macros don't show up in the regular macro list.

I know that I can write code for the new workbook that will reference the Add-in code, but I want other users to be able to install the add-in and run the macros in it right away without any knowledge of VBA. Is there a way to make this possible?

View 11 Replies View Related

Making A Calculator From Vb.net To Vba

Feb 11, 2008

i made a claculator in vb.net, and now i have to make one in vba, what i did was as follows, first ill post the code from last year, then my vba attempt;

View 14 Replies View Related

Making A Button

Mar 14, 2007

I have a spread sheet that tracks progress reports that are due every 90 days. I have a due date colum that will automatically get high lighted if the 90 days have passed to inform me or my staff that the report is late. I would like to have a colum with a button in each row that allows the reader of the spreadsheet to press "YES" for that accont's progress report having been turn in. When the "YES" button is pressed the date due date column advances to the next 90 day due date and the highlight would turn off.

I used the conditional format to change the due date column to Yellow if =TODAY() is less then or equal to the due date. But I can figure out a way to select something and turn the highlight off and advance the due date to the next 90 day due date.

View 9 Replies View Related

Making A Roster

Mar 30, 2007

I have been asked to make a formula that sums up the hours in a week and then tells me whether I am below or over the budgeted hours for that week!

I cant get it to work since I cant figure out how to have the same formula in all the cell that sums up early, mid and late shifts, ie 06-14, 14-22, 22-06.

The graveyard shift is a problem there since I get negative hours.

Further more, I need to have the formula ignore cells to be added up if it has letters in it, we write an R for Rostered day off.

View 9 Replies View Related







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