Determine The Age Of A Value In Respect To A Table Of Columns
Jan 13, 2010
I'm trying to determine the age of a value in respect to a table of columns and just cannot seem to nail it - perhaps it's my logic .
1 year2 year3 year4 year5 year5 year +Balance395.0384769.77271115.9771436.9441738.5292009.48775
I have a balance (in this case, 775), I need to determine where it sits within the table.
For example, if my balance is less than a year, retun "1 year less". If it's greater than the one year, but less than 2, return "1 year old"; if it's greater than 2 years but less than 3, return "2 years old". I need to do this all the way until it's greater than 5 years.
I guess it's an IF statement, but my calculations keep churnin out 2 years, when in fact, we can clearly see it's 3 years (because it's greater than the 2 year value).
View 9 Replies
ADVERTISEMENT
Jun 17, 2014
I have a table of 5 columns (each of 50 length) that is automatically refreshed (i am getting the data from web)after an interval of 5 minutes. I want the first column to be sorted alphabetically after every 'refresh' command, that has been executed by the excel. i have tried recording the macro and then running it on keystroke of 'ctrl + m'...the table surely gets sorted out but i can't be pressing ctrl+m every 5 minutes. auto-sort that is required to be executed after the auto refresh command..
View 6 Replies
View Related
May 23, 2007
Suppose I have the following plan number (24) and I wan't to spread it across 12 columns, as evenly as possible but with respect to rounding.
Easy enough.. Each column receives 2...
Or say the figure was 24.6 and i wanted to round to 2 places...
Easy enough... Each column receives 2.05...
Or say the figure was 24.7 and i wanted to round to 2 places...
Easy enough... Each column receives 2.05... But one would be 2.06!
How about the number is 1 and say, the rounding is 0.1?
Ten of the columns would be .1 while two others (arbitrarily) would be 0.
View 9 Replies
View Related
Dec 1, 2007
I need to create a function that numbers rows with respect to data groups in a column (column labeled "Type" in this example). The result would be that shown in column A in this table.
How do I write the function?
#TypeName Date
1CarsJohn1/12/2008
2CarsJane11/10/2007
3CarsMary11/2/2004
4CarsBob12/7/2003
1TrucksMike12/12/2007
2TrucksSandy1/3/2007
3TrucksDale12/14/2006
4TrucksVince4/8/2005
*
View 10 Replies
View Related
Jan 28, 2012
I have 2 stocks (A10 & A11)
Using VBA I want to check the table above to determine which lending percent each will be given.
View 3 Replies
View Related
Mar 4, 2004
In VBA code, what's the simplest way to verify whether a cell is a member of a pivot table or not? I have a complicated way of doing this by checking if creating a formula in another cell with a reference to the cell in question generates the GETPIVOTDATA function; however, it seems like there should be a much simpler way.
View 3 Replies
View Related
Feb 18, 2008
Im trying to write a formula that will check if a name that I have in column A also appears in column B and if it does I want it to return a value for example TRUE in column C.
I'm currently doing a survey and I have all employees in column A (600persons) and then column B I enter thos that have taken the survey. So If an employees name exist in column B he/she has done the survey and then they I get the value "TRUE" or "1" or something else. So in this way I can easily see who has and who hasn't done the survey. I've been trying with VLOOK and so on but I can not get it right? Maybe I need VBA?
View 3 Replies
View Related
Sep 7, 2009
Given a pivot table, is there any way that I can determine the source data that was used to create the pivot table?
I suspect that the pivot table was created using only part of the data, but I'm not sure.
View 9 Replies
View Related
Feb 7, 2014
If I have 1,000 entries in a column is there an easy way to determine the number of times a certain item is in the columns. For example if field A1 is "qwerty" I wan to see how many times "qwerty" or field A1 appears in the entire column?
View 2 Replies
View Related
Oct 23, 2013
I have an excel document with hundreds of columns. Each column should not be empty; they must have at least one value. Right now I'm applying a filter and going through each column one by one to make sure that it is not empty. How can I perform this check without having to go through each column one by one?
View 6 Replies
View Related
Sep 11, 2009
Is there a function to convert the data shown in table 1 to table 2 without rearranging the columns and rows? because i don't want to use TRANSPOSE. I want a function, somthing like SUMIF with OFFSET or INDEX and MATCH or any other function.
Table 1
Team 1Team 2Team 3Team 4Team 4Team 5Team 5ABABCity 12531642City 231173705City 367891125City 436251348
Table 2
City 4City 2City 1City 3Team 4BTeam 2Team 5ATeam 4ATeam 1Team 3Team 5B
View 2 Replies
View Related
Jun 27, 2007
I need to Match to columns of one table to another two columns of another table, both tables are on the same worksheet.
One table has 500 rows more that should not be, I need to find out which of these 500 rows should be deleted, so the two tables should be same. So the batch number and corresponding amount should tie to another tables batch number and amount.
View 9 Replies
View Related
Jun 12, 2014
I would like to sum multiple columns in a table driven by certain criteria. The criteria is text and it is specified by a text function that is date driven and it also includes a wildcard. Essentially, this table contains YTD information, each month a new columns are added. I would like the formula to update automatically when the new accounting period date is populated.
I've tried sumif( and sum(if( using an array, but was not successful.
View 5 Replies
View Related
Mar 1, 2009
I have some table with 3 columns: Name, Team, Players with the same name
I want to get to a 2 columns table without using "SORT" or something like that... using only formulas.
Maybe I wasn't so clear so I added a file with my problem.
View 11 Replies
View Related
Aug 27, 2009
I am trying to convert a table into three columns so that I can use the data in a vlookup.
View 8 Replies
View Related
Jul 14, 2014
I have a pivot table that I create weekly to include the new week's data, as well as the rest of the weeks in the year. I'd like for the macro to pull all of the columns like "WE" into the pivot table so that it includes the current week. Below is what the code looks like now. Is there a way to tell the macro to pull columns based on "field name like" language? I've been able to get this far, but it doesn't loop the headers to find all of the columns that have WE headers.
Sub AddPTFields()
Dim PT As PivotTable
Dim PF As PivotField
Dim FldName As String
Dim LastCol As Integer
Dim TxtStr As String
Dim wsName As String
[code]....
View 2 Replies
View Related
Mar 15, 2013
I have a pivot table that shows the following:
ID_LOCATION1_LOCATION2_COUNT
1__XXAT______213_______1
_____________215________1
_____________226________1
2 XXAL______213_________1
_____________228________1
3 XXAA______213________1
_____________123________1
_____________258________1
_____________065________1
...and the list goes on for 1300 more ID items
What I need is to reformat it to show the location2 as columns one next to each other as follows:
1 XXAT 213 215 226
2 XXAL 213 228
3 XXA 213 123 258 065...
View 1 Replies
View Related
Nov 23, 2006
I was wondering if there was a simple function that will hide all the columns which have Zero value thoughout a pricing spreadsheet.
The different elements of the pricing have lead to 60+ columns, upto 75% may not contain a value or may display "false", it is making it very difficult to view and print. At present I am manually auto filterig to see if values are present in the column and then hiding the columns if they are blank (a real pain in the backside).
View 9 Replies
View Related
Mar 1, 2008
I have a code to apply formatting to my selected cells (a border and background color) as well as sum in rows in columns C and D. I have data in A1:D1508. The first row is titles. Column A has item codes, B is item titles, C is 2007 sales and D is 2006 sales. All the items are grouped by categories. For example A1:D7 is category 1 with row 8 containing a total in column C and D, A9:D14 is category 2 with totals in row 8. Not all the categories have the same number of rows. This code is giving me a Run-time error '1004': Application-defined or object-defined error. I have searched the forums and can't find what is wrong with my code.
Sub CustomFormating()
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlDouble
.Weight = xlThick
.ColorIndex = xlAutomatic
End With...............................
View 9 Replies
View Related
Nov 2, 2012
I have two queries regarding pivot table.
I would like to include additional columns with formula in to a pivot table
I would like to get ride of the Items in a pivot table with Zero values without editing the source data.
I have attached a work file in to the below link, [URL]....
View 1 Replies
View Related
Nov 22, 2013
I want to get a subtotal of columns B C and D in a pivot table. I have tried to add a calculated item to a pivot table to add columns B C and D. When I try adding a calcuted item I am getting an additional column inserted after columns B C and D. Each additional column has the previous column duplicated. I want a subtotal of column B C and D. I don't want to use the grand total function because I also have columns E through H that I don't want in the subtotal.
How can I get the columns B C and D subtotaled within the pivot table?
View 5 Replies
View Related
Aug 18, 2014
I have an problem transposing multiple columns into a table. Source data is organized in 3 columns - ID, Visit#, Date. What I need is a seet in which I'd have in Column A - and ID, in Row 1 a Visit type and Visit date would be populated in the table. See attached file. Since I'm handling about 50k datapoints a simple "paste special--->transpose" is a nightmare.
View 5 Replies
View Related
May 28, 2009
I have a volumes sheet and based on two criteria (in columns) am trying to pull the corresponding value from the April Results Table. I have product type in C2 (this varies down the column) and depot numbers in D2. The table i am trying to match has depot numbers in column A2:A93, and Product type in Row 2 (B2:P2), where the two criteria are matched, i need it to return the corresponding figure. I have tried various combinations of Index and Vlookups but i cant get it to work!
View 5 Replies
View Related
Oct 24, 2011
How can you visually format a column with multiple values in a pivot table? Say you have month in the column section, and three values in the value section: budget, actuals, variance; I want to visually seperate each month's set of data.
View 1 Replies
View Related
Mar 26, 2013
is there anyway to arrange pivot table columns without manipulating the field list items?
in other words, in older versions of excel, you could just right click the column and select move left, or move right
View 2 Replies
View Related
Jul 18, 2013
I have a large data set that I want to pivot on to produce various results. I can easily pivot on two columns to produce those Unique IDs where East AND West are "Yes" or "No." I want an easy to filter on results where either East OR West is "yes." I could do this with a joined (Concatenated column) such as East/West but was hoping there might be an easier solution built into Excel pivot feature.
Unique ID
East
West
1
Yes
No
2
Yes
Yes
3
No
Yes
4
Yes
No
5
No
No
View 2 Replies
View Related
May 9, 2014
I create a report where in I need to rearrange the columns in a particular manner as required by the client. Any macro which will will work as per following criteria.
Column headers start from A1 onwards (the last column header might vary depending on the creator, I get the report from a different team). The number of rows of data might vary.
For changing the order of columns, the macro should look for a column with the header "Close Date", cut it and insert is before a column with header "Bookings". Then, the macro should look for a column with the header "Description", cut it and insert is before a column with header "Selling BU". The macro needs to then cut two adjacent columns namely "Sector" and "Sub-Area" and insert it before the column with header "Total Bookings".
View 2 Replies
View Related
Jan 7, 2007
Pivot Tables. The structure and subject-content of cells B3:D14 (Block A) is identical to those of cells F3:H14 (Block B). I want a pivot table to treat the two Blocks as if they occupied the same three columns (e.g. B3:D26).
View 3 Replies
View Related
Jun 28, 2007
How do I create a pivot table with multiple data columns? My fixed asset software will not let me create a report to list multiple months/ quarters. I've created a spreadsheet that I can dump each month into, but I'd like to be able to sort by G/L acct or Department. When I try to create a pivot table, I can't get it to accept each month as a data field. Ive attached a copy of the spreadsheet that I'm using & the report that I'd like it to look like.
View 4 Replies
View Related
Jul 10, 2012
This is a sample of the attached workbook.
Project
Task
Current Phase
Start Date
Planned Finish
Status
[Code]...
What I am trying to do is break up the "Phase" column into several columns, where each phase would have its own column. Something like this:
Phases
->
->
->
->
->
Project
Task
01.
02.
[Code]...
It is very important that the output of the data goes on a new sheet, and that the records maintain integrity.
View 3 Replies
View Related