VBA / Macro To Add Helper / Reference Column
Aug 18, 2014
I get a lot of spreadsheets that I need to do an ascending sort on certain columns, but the problem is there is nothing to revert it back to its original sort. Is there a way to add a reference column numbered 1, 2, 3 etc. so i can return to the original order. The spreadsheets can be over 200 lines at times so doing it manually is really irritating.
It doesnt have to be too smart, just something to add a column and add the numbers say 1 - 1000 in ascending order, I can delete the excess as required. I know I could record a macro but that just seems to time consuming to go up to 1000.
View 2 Replies
ADVERTISEMENT
Jan 25, 2013
I'm looking to populate my Helper Column with all duplicates from my Data Column. Please note that my helper column needs all instances of a duplicate.
Data Column
Company ABC
Business DEF
Corporation GHI
Business DEF
Company ABC
Business DEF
Helper Column
Business DEF
Company ABC
Business DEF
The formula needs to be dynamic and it will need to be able to be copied down.
View 9 Replies
View Related
Dec 17, 2007
I'm using Excel 2007 and have an Employee Scheduling Program that keeps track of 10 employees on a monthly basis (1 worksheet per month). The days of each month are in columns (I thru AM) and my 10 employees are in Rows 6 thru 15, which creates a grid of cells. I use Conditional Formatting to highlight the Weekends, Todays Date, and Holidays. My Sumproduct formula (shown below) is in each of the cells of my grid and places a number (1 to 10 for each employee) from start date to the end date. My Current formula works great as it finds every occurrence of the argument but I need to modify it to include the contents of the Helper Column.
If(Sumproduct(($g$44:$g$74=$c$6)*($m$44:$m$74<=i$4)*($t$44:$t$74>=i$4)),1,0).......
View 11 Replies
View Related
Nov 26, 2012
I have a table with 200.000 rows.
I need to create a helper column, that marks distinct values with 1 and not distinct "" or 0.
I tried the following but both use countif and I believe it is the problem it's just to slow.
=IF(COUNTIF($A$2:A2;A2);1;0)
=1/COUNTIF($A$2:A2;A2)
but both are really slow +20 mins to calculate and many times Excel crashes( 2007 32bit).
The workbook is really simple
Col1 (number formatted as text) - Col2 =distinct
View 6 Replies
View Related
Oct 18, 2009
I have a file here included which has 8 + columns. I normally have to go through each column and find when the references start and delete everything below it. If i could have a macro find where the references start in each column and delete on down that would be a huge time saver.
#REF!
#REF!
#REF!
#REF!
Thats the example of the reference i run into, i was thinking of a macro to find where the REF starts and delete that cell and everything on down.
View 11 Replies
View Related
Apr 18, 2009
I am working on an exported database and need to make the first 2 words only PROPER. Do you have to use the helper cell ? Also, I practiced with the LEFT, RIGHT commands using the FIND on the spaces. It worked well. And I can extract the first word and make it proper in a helper cell. But I couldn't seem to add the PROPER function to the extract formula string. Would you add it first ?
Below are 2 of the "strings" that I am working on to make the first 2 words proper and then to subsitute the P/N to #.
GENERIC P/N TIES-8 - 8" nylon tie wraps - 100 ...NEWARK ELECTRONICS P/N 81F4613 / PANDUIT P/N FC…
View 9 Replies
View Related
Mar 21, 2008
I have a formula that I want to insert using a macro, so how do I iterate the * values in this line?
ActiveCell.FormulaR1C1 = "='Sheet1'!R[*]C[*]"
View 9 Replies
View Related
Jun 12, 2009
I am creating a helper table so then I can graph my information. But the formula I am using gives me the information. The problem is it skips the first row for every school. So when I select the school's name from the drop down menu in the schools dashboard sheet. The table should update with the grade level.
For example; I select school 1 which has grade 3, 4, & 5. but when I look at the helper table what comes up is grade 4 and 5. the formula I am using is
{=INDEX('2009DATA'!$C$1:$1000,SMALL(IF('2009DATA'!$A$1:$A$1000=$E$3,ROW($A$1:$A$1000),""),ROW()-1))}
View 5 Replies
View Related
Mar 26, 2014
I've created a custom Function. I would like for there to be a Helper when a user is entering the Function arguments.
For example if I go into a cell and type in =VLOOKUP(
A popup with appear that shows...VLOOKUP(Lookup_Value,Table_Array,col_index_num,[range_lookup]).
Is it possible for me to build something like this in my Function?
View 4 Replies
View Related
Mar 6, 2008
A 'Days Attended' cell (N8) and a 'Days Absent' cell (O8). N8 needs to count the number of "Present" values there are on another worksheet. The other worksheet has dates across the top and names down the side.
When i use
=COUNTIF("Attendance!C9:Z9", "Present"),
and the next date comes along the formula changes to
=COUNTIF("Attendance!D9:AA9", "Present")
ie. the reference moves a column across - the new date's absent or present is not counted. Using =COUNTIF(INDIRECT("Attendance!C9:Z9"), "Present"). is no good because when i add a new name i need the row reference to move down as a row is inserted. ie. both person's formulas count the same row. So, my question: I need the columns to stay the same - C:Z (leyway for future dates) and the rows to change as i insert or delete people from the system.
View 2 Replies
View Related
Aug 11, 2008
I'm trying to reference a location on a spreadsheet in a macro by using the values in two cells (the idea is to then paste to this location):
D2 is 17 (the row)
B4 is 2 (the column)
therefore the location is B17 (R17C2), but can I get this to work...? The values in these cells can change depending on selections made which is why I want to use the cell references rather than the absolute!
View 3 Replies
View Related
Jan 16, 2013
I have a spreadsheet with a column showing dates (dd/mm/yyyy). I need the column next to it to display the month only (Jan,Feb etc).
How do I create a column to show the month only using the date column as a reference.
View 5 Replies
View Related
Feb 8, 2010
I want to get value from reference one column and return value by corresponding row from another column. This can be done by vlookup column. But it find value from 1st column and return value from given relative column. That mean find from Left column and return value from right side given column number.
But I want find from Given column number and return value from given left column. For Further detail see the Attached file.
View 3 Replies
View Related
Feb 2, 2012
If column B is not empty, I want the corresponding cell in the same row of column A to contain the value "1".
View 9 Replies
View Related
Nov 19, 2013
I Basically need to use DATA in Column D of my file to add a ROW and then use Column C to name that new ROW added...
Example: [URL] ........
View 2 Replies
View Related
Jul 17, 2014
Currently, I have a standard vlookup forumla that looks like =Vlookup(B2,Sheet2!A:G,5,false)
However, the data on sheet two is ever expanding--each month, specifically. And I need to return the most recent (so, rightmost filled) column. Right now, the column is 5, but next month it will be 6 and so on and so forth.
View 7 Replies
View Related
Apr 25, 2014
Let's say I've ended up with the number 8 in Cell D4 for example. Is there a formula that can return the letter "G" (The 8th Column) so I can use it in future cell references ? If so, let's say we store that in Cell B5. How do I now refer to a cell in a chosen Row of that same Column by reference to Cell B5 ? For example if I want to refer to Cell G33 can you refer to this Cell in some form like Cell(Contents of Cell B5;33) ??? Don't want to use R1C1 type references if possible.
View 9 Replies
View Related
May 10, 2014
Please refer to attached sheet.
I have monthly data for 3 stores as shown.
I want to know if any data exsit at certain cell location.
See data in Cell X1:Y4
For Store1:
I want to check if any data in cell reference (10,12), where 10 and 12 is variable and values will be in cell Y2 and Z2 respectively and it will change month to month.
If I have data in this cell reference, then AA2=TRUE, if no data then AA2=FALSE
For Store2:
I want to check if any data in cell reference (110,12), where 110 and 12 is variable and values will be in cell Y3 and Z3 respectively and it will change month to month.
If i have data in this cell reference, then AA3=TRUE, if no data then AA3=FALSE
For Store3:
I want to check if any data in cell reference (210,12), where 110 and 12 is variable and values will be in cell Y3 and Z3 respectively and it will change month to month.
If i have data in this cell referance, then AA4=TRUE, if no data then AA4=FALSE
View 4 Replies
View Related
Mar 30, 2009
In a formula, how can I reference the first value in a column of numbers when the row number of that first number is not constant [ie] the row number changes regularly from day to day as I insert new rows at the top of the column each day?
View 7 Replies
View Related
Aug 14, 2009
I'm trying to revise a salary payments workbook that isn't set up so well and I'm struggling with finding a good way to enter payments from an old sheet onto a new sheet. The values (for example) I want to appear on the new sheet are in range C2:AQ2 on the old sheet. Instead of going left-to-right, I want them to appear from top-to-bottom. The first formula I wrote was just a simple:
View 5 Replies
View Related
Aug 26, 2009
I have a data entry spreadsheet that contains 120 data entry panels each of 10 rows. Each panel is separated by 3 rows (1 of which is hidden). When entering data to the panel the user is required to enter a date in column F of the data entry panel. The number of used rows in each data entry panel can vary from 1 to 10.
The entry of a date in the first Column F cell in each entry panel stamps today's date in Col F in the first row below each data panel (the hidden row) and that date is then linked to a separate summary sheet to show the date of data entry. The code I'm using for the date stamping routine is below, and although it works it is painfully slow and I'm sure very inefficient. I've had to break the code into the three sections as shown below because there seems to be a limit to the number of individual cells I can reference in each of the range statements. (Is there a limit or is the length of the range statement causing some other problem?)
View 4 Replies
View Related
Apr 12, 2013
I'd like to know if there's a formula concatenation I could use that, when I reference one of a columns cells elsewhere on a sheet, will tell me the name of the column it came from if I assign that column a name. I don't know anything about VBA but if that's the only way I'll try to figure it out. Excel 2013
If a8 said 55 under a column called Qtr 4 then a reference to A8 would show 55 (Qtr4)
I could always simply use an absolute reference for the beginning of the column but if there's a faster way where I could do these on the fly I'd prefer that
View 3 Replies
View Related
Jun 1, 2006
explain with an example.
Cell A1 =A2/MAX(A2:A5)
Cell A2 1
Cell A3 2
Cell A4 3
Cell A5 4
Cell A1 is 0.25 right? Right. Now insert a cell (or row) between cell A1 and A2. Then cell A1 changes to =A3/MAX(A3:A6). I don't want this to change. I still want to formula in A! to be =A2/MAX(A2:A5). I've tried using the "$" absolute character and I've tried using the absolute reference in the R1C1 reference style both to no avail.
View 9 Replies
View Related
May 14, 2007
I have the following table:
******** ******************** ************************************************************************>Microsoft Excel - Book1___Running: xl2002 XP : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutF4=
ABCDEFG1*******2**Lockbox*Total****3Monday2-Apr-0735**Lockbox*TotalDesired*Result4Tuesday3-Apr-0756*Wednesday781235Wednesday4-Apr-0778****6Thursday5-Apr-0796****7Friday6-Apr-0743****8Saturday7-Apr-07456****9Sunday8-Apr-0745****10Monday9-Apr-07678****11Tuesday10-Apr-07653****12Wednesday11-Apr-07123****13Thursday12-Apr-07345****14Friday13-Apr-0745****15Saturday14-Apr-07567****16Sunday15-Apr-07578****17Monday16-Apr-0778****18Tuesday17-Apr-0796****19Wednesday18-Apr-0745****20Thursday19-Apr-0745****21Friday20-Apr-07578****22Saturday21-Apr-07321****23Sunday22-Apr-07231****24*******Sheet1*
[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.
I setup an index match formula to find a match between a column and row reference. the formula because what I want is the value to the right of the second instance of Wednesday in the rows not the first instance.
View 9 Replies
View Related
Sep 22, 2009
I need to create a formula that will reference row 3 in whatever column it's in.
If I copy the formula down the whole column I need it to always reference the third cell from the top. I've got a value in that row that I need all the formulas to use.
View 9 Replies
View Related
Feb 15, 2010
I have a range in column A. which will vary time to time.
I need to find the row reference(say A99) that is end of the range. Then I need to use that row ref in another formula.
How to do this without VBA?
View 9 Replies
View Related
Apr 15, 2009
I've looked online and through the forum and can't find a solution.
I'm using the following code...
View 3 Replies
View Related
Nov 28, 2007
I have a spreadsheet in excel with scheduling information, each group of data (job) is made up over 2 columns and 6 rows and is in a block (this is so it is easy to view and manouvre)
I have a link in another worksheet that extracts information from the cell if a criteria in the group is met!
At the end of each day I need to delete the columns (B and C, which make up that day) in the schedule.
When I do this all the references in the other worksheet are messed up, even though the next day is moved to columns B and C.
I would like the link to the other worksheet to automaticaly recognise the new values in column B and C as the reference.
View 9 Replies
View Related
Jul 8, 2009
I am not sure how this is possible without doing copy pate transpose or individually refereing each cell to source. I would like the heading to be presented as in sheet1 which is sourced from Source sheet but if anychanges are made to source it updates the Sheet1. I have attached an example to illustrate. (Headers are not fixed number)
View 3 Replies
View Related
Sep 29, 2009
i'm tracking hospital census with days of month in columns and patients 1 - XX in rows. this is basically what i'm working with.
A...........B........C...D...E...F...G...H...I...J...AG...AH
Patient...Payor...1...2...3...4...5...6...7...8...31...Total
1...........MCR.....x...x...x...x...x...x...d...............6
2...........COM.........x...d..................................1
3...........SP............s...s...s....s...d....................4
4...........MCR.............................x...d..............1
5...........MCR.............................x...x..d...........2
Total.................1...3...2..2...2...3....1..0.........14
The "total" cell formula is =COUNTIF(G7:AK7,"X")+COUNTIF(G7:AK7,"s")
S and X just identify where that patient is med/surg vs. skilled.
I'm looking for a solution that will reference column cells B2-BX and add the total from that row (AH) if the payor of that row is MCR, then another cell that would do the same for SP, COM and so on. so in this scenario it would be something like
COM...7.1% (SUM col AH where col B = "COM" ie. 1/14)
SP......28.6% (SUM col AH where col B = "SP" ie.4/14)
MCR...64.3% (SUM col AH where col B = "MCR" ie.1/14)
View 8 Replies
View Related