VLookup :: Last Row And Get The Required Numeric Value
Dec 28, 2009
I have two columns E, F in excel. Rows are dynamic. In the sense that sometimes only 2 rows appear or sometimes newer rows appear......
Now I want to lookup the last row and get the required numeric value. I have written the following formula to get the result. =VLOOKUP(CONCATENATE("E",SUM(COUNTA(E2:E16),1)),E2:F16,2). It returns value 60. But when I add 2 new rows.
7 F 70
8 J 90
It should return 90. But it is still showing up 60. when i checked CONCATENATE("E",SUM(COUNTA(E2:E16),1)). it is returning 'E8' correctly. But VLOOKUP unable to return correct value.
Sheet 1 has a column with verbiage in it. Sheet 2 has a column of possibel verbiage with a second column of numeric values for the verbiage On sheet 3, I want the numeric value for the verbiage in cell b19 on Sheet1
Long way, create a new column on sheet1, run a VLookup to insert the numeric value into the new column, then do an "equals" on sheet 3 that point to the Vlookup results. How can I get the value onto sheet3 without creating the extra column?
I am trying to do is extract the volume size of products in 'ml' from 10k plus products from a description field cell. this description field could also contain the weight of the product in grams so I cannot just do a search for a numeric string , it has to be associated with the milli-litres statement .
is is possible to do a sort of ' *ml ' search and then select and copy to another cell ???
I have a column of several thousand entries listed as numeric with a scientific symbol eg.
1.4mSv 19.53mSv/1mSv (some have a mix and or alpha/numeric range)
I want to convert them to the numeric value only. I'm extracting to a chart which is not recognising the alpha and throwing the data out. I tried find and replace, trying various options within the 'replace format' tab with no joy.
I have a few thousand products codes (i.e ABCD123BLA08 or SHU267BLA) They are non standardised in length or structure. I wish to pull out everything upto the end of the third numeric digit.( ie ABCD123 and SHU267) I cannot use left as they are all different lengths. Ideally i would serach for a non numeric char after the number then use left up to that point. Search can't do this, FIND can't do this.
Summary ABCD123BLA08 would be ABCD123 SHU246BLU would be SHU246 I147ORT08-12 would be I147
19352510 C084111X AA 24253081 A001290U AA 19599291 48413321
I want to write an If Statement is a column next to each entry that denotes two options either Broker or Agent. Where the code is say 19352510 then Broker and where it is say C084111X AA then Agent.
Broker codes will never contain a letter. The Agent code will always start and finish with a letter.
I have been given a worksheet which has 5000 rows spread along 13 columns. There are about 200 cells that I am interested in from this sheet, these cells being the subtotals of the cells above them.
I have extracted the individual cells containing the subtotal values to a new, empty column but they are spread down this column with blank cells in between.
Is there a function / formula to get rid of the 4800 blank cells so that the data I need is compressed into a stack of 200 cells all filled with data?
with the line "Sheets("Hidden Data").cells(rngfound.row, 9) = sheets("data").range("l18")" the error messages states Object Required, but i am not sure what this is trying to say.
any idea's or thoughts would be greatly appreciated.
at the top of the coding i have listed "Public rngFound"
I am creating a training matrix that will be used in a number of locations. Some only have a few staff members whilst others have lots. I want each location to print a list on a formatted sheet but I want to set it up so that the locations with fewer people don't end up with lots of blank lines.
Why should I set objects to nothing (ie clear them) just before ending a sub routine? Doesn't excel dump the variables after the sub is finished running?
I have a worksheet with a header row.the data is from B2:B25.I have to accomplish two things.
i)I want to get only 8 records (viz record nos-5,6,11,12,17,18,23,24)from the entire worksheet.serial numbers are shown only for illustration purpose.i want to eliminate all other records from the worksheet.then i will get the records from seriel numbers 1-8 as shown in E2:E9.
(2)I want the content of row3 to come up in C2 and then row3 should be deleted. now the content of row4 should come up to C3 and then row4 should be deleted.it should continue.the result will be 4 records as shown in G2:H5
I recorded a print macro which prints to my default printer, others will be using this spreadsheet so I really need it to print to the same network printer. The printer address and name is: ironyan-fileBI44
I need a loop function (i guess a do while or do until code) so whenever the word 'Non-Current' appears in colum A enter a 1 in colum E until the word 'Total Non-C' is reached at which point the loop must end. Such as: A B C D E NON-CURRENT 6 4 5 1* ABSA 4 5 2 1* BARCLAYS 3 2 8 1* NED 0 8 6 1* TOTAL NON-C 4 6 7 0
The buttons are located on the PFM Tracker sheet with what I need them to do. In addition I'll give you a breakdown of what is required.
Currently when the workbook is opened the user is forced to activate the macros. One of these macros disables the Cut, Copy Paste features within Excel. I need the first button 'Enable Copy' to request a password for activation and once entered the Cut, Copy, Paste feature to be enabled. Then when finished the 2nd button 'Disable Copy' when clicked to re-activate the Cut, Copy, Paste Disabled macro.
Hope that explains it. I have left the PFM Tracker sheet unprotected for who ever wants to play with it. (Not that protection would stop some)
sum all my sheet data....I have around 200+ sheets with same format and I'm doing one summary sheet where I can see the sum of all sheets (column L) but not able to get the formula .....
Example: Currently using below formula
=Sum('Sheet 1'!L:L)
How to I change the Sheet 1, Sheet 2 ..etc If I drag the formula I'm not getting the results....
get the right formula to copy all the sheets column L:L sum details...
I have a cell in which I want either a Y or a N entering. I do not want this cell to be left blank.
I can add a validation so that nothing but Y or N can be entered but it doesn't stop it being left blank. I entered an N (as a default) forcing the user to change it to a Y if needed but I don't want them to be able to delete and leave the cell blank.
Sub Macro2() ' ' Macro2 Macro ' Macro recorded 7/28/2007 by i8ig '
If Target.Column = 1 Then If Target.Value = "Med" Then Rows(Target.Row).Interior.ColorIndex = 4 Range("H3").Select ActiveCell.FormulaR1C1 = "=IF(RC[3]="""","""",RC[3]-3)" Else If Target.Value = "Tasc" Then Rows("4:4").Interior.ColorIndex = 44 Range("H4").Select ActiveCell.FormulaR1C1 = "=IF(RC[1]="""","""",RC[1]-2)" Else If Target.Range = "NBAR" Then Range("J5").Select ActiveCell.FormulaR1C1 = "=IF(RC[1]="""","""",RC[1]-5)" Range("I5").Select ActiveCell.FormulaR1C1 = "=IF(RC[1]="""","""",RC[1]-2)" Range("H5").Select ActiveCell.FormulaR1C1 = "=IF(RC[1]="""","""",RC[1]-2)" End If End If End If End If End Sub I continue to receive an error '424' object required and I cant find it
i have created a workbook that looks for files and creates hyperlink within a worksheet to these files, to help the user I have included the title from the document properties.
To get the document properties i used the DSOFile DLL from Microsoft and added it in to my project and it works fine.
My problem is that i wish to distribute this to a large group of users within the workplace and I need a method of checking if the DLL is added in and registered, if not can it be added in and registered on the fly.
I have tried placing the DLL on a common network drive, but this could be further complicated b some users taking laptops out of office but hopefully the microsoft synch of files might take care of this.
I am trying to summarise training data in a spreadsheet as per the following layout:
A B C D E F 1 Trainer name # of trainees # of assessments Total hours Avg hrs per trainee Pass rate 2 Peter
3 Paul
4 Mary
The intention is to have this summary fixed on one tab, with the raw data being dumped into a second tab alongside the summary (named “the data”).
The data for the summary comes directly out of an Access database and is in the following format (I’ve put an X against the headings that aren’t relevant to the summary):
A B C D E F G H I J K L M N 1 X X PersID Name X X X X X Trainer Assessment X Result Hours 2
12345 Jimbo
Peter Excel Competent 2 3
54321 Nelson
Paul Access Not yet Competent 3 Notes:
-The data can be up to 2000 rows long
-There will be multiple entries for each trainer of course, and multiple entries for some trainees (i.e. they will complete several training types)
-Result can only be Competent or Not Yet Competent
So, of the 5 fields I need to populate for each trainer, I’ve currently only got the following nailed:
# of assessments: =COUNTIF('The data'!$A$2:$A$114,A2) Avh hrs per trainee = D2/B2
These were the easy ones.
What I’m having trouble with is the following:
For the #of trainees field, the calculation must determine how many people were trained by each particular trainer – so only unique entries should be counted (PersID could be the unique identifier). Total hours will also need to be linked to the individual trainer – in other words, how many hours in total has the trainer spent training?
Pass rate is another tricky one – for each trainer, I’d like to see the percentage of trainees deemed competent out of the total number of trainees they trained.
I have a table in a workbook with names in the left column and top row. The intersecting data fill the rows under and to the right of these named areas. I need to keep this table in its own workbook, because many sheets in other workbooks will access its info. I have linked this workbook information to a sheet in each of my accessing workbook. I call this sheet "DataLink" and it is a sheet that uses an If(Original Data Ref Cell="","",Original Data Ref Cell). This works well at bring the data into my active workbook.
My active sheet has 2 drop down lists. One for the top row of names on the DataLink Sheet, and one for the left column. I have used the Offset Function refering to cells with the countif and count functions in my Data Validation setup to make the addition of the names in the DataLink Sheet Dynamic. This also is working well.
In my Taget cell (CeIl where I will get my answers) I use the Indirect(row) indirect(column) to retrieve my intersecting data relate the the row and column. This works well as long as I establish my defined names of each column and row with Ctrl-Shift-F3 and choose (Top and Left)
Now my problem. Although I can dynamically add the names to my drop down list I cannot retrieve the data from new entries on my DataLink Sheet(remember coming into active workbook from outside source) unless each time I return to my DataLink Sheet,and highlight the entire range of cells and do a new Ctrl-Shift-F3, which then ask me if I want to replace each name one by one. I have some 700 names defined. And this is disconcerting to say the least. Is there a way to add code to automatically add the contents of a cell as a defined name. This way as my information from my original data workbook enters the DataLink Sheet in each of my Active workbooks, new names that appear in the left column and top row will be defined as have intersecting data under them.
I have two worksheets one called "invoice" and one called "tenants" "Invoice" has a userform where I want to enter a tenancy number and then lookup the tenants name and address from "tenants"
I have put the following macro in
Sub lookup() Dim res As Variant res = Application.VLookup("A1", Tenants.xlsx("Sheet1"), "$A:$H", 2, False) If IsError(res) Then MsgBox "not found" Else MsgBox "found at pos: " & res End If End Sub
I am trying to get the code to search for me specific words in the excel files in my Folder as specified, however when i try to run it, there will be a Error 424 : Object required.
Sub SearchText()
cr = vbCrLf quot = Chr(34) 'quotes
Dim l As FileSearch Set l = Application.FileSearch
s = InputBox("Search", " Enter the text you're looking for.")
With l .NewSearch .LookIn = "D:FinancialNews" .SearchSubFolders = True .FileName = "*.xls" .MatchTextExactly = True ............................
If C36, C37, C38 or C39 contain a 0 then put 0 if not continue with the the formulae I have this but I know its not right as this is a sum: =IF(C36:C39=0,0,ROUNDUP((C36/C37)+(C38/C39),0)).
I finally managed to create my very own macro calendar BUT it does not fulfill the function that I need it to neither do I no whether it is able to at all.
Basically, I have created a form that I distribute to Line Managers to complete and one of the fields is the date so the first problem with me macro is that it only appears on my PC and secondly I cannot seem to embed it in my workbook as a button. Is this possible?