Vlookup Wont Work With The Text Ax??
Jan 7, 2009I am using the vlookup command, I have a table with 2 columns, the left one has text and the right one has numbers in currency. the vlookup works for all the text bar one, which is AX.
View 5 RepliesI am using the vlookup command, I have a table with 2 columns, the left one has text and the right one has numbers in currency. the vlookup works for all the text bar one, which is AX.
View 5 RepliesMy problem is that my VLOOKUP formula will not return any data when it doesn't like the format of the data it's looking up.
Example: I have a spreadsheet that displays revenues earned by assets.Every month I export a table of data from an accounting software program with (a) asset numbers, (b) invoice date, and (c) monthly revenues.Then I copy the data into Tab 2 of my spreadsheet.On Tab 1 of the spreadsheet there is a table that lists Assets 100 through 120. Column A has all the asset numbers.Each month it varies as to which assets earned revenue and which one's did not. Usually between 10 and 15 assets earn revenue in any given month and about 5 do not earn revenue.On Tab 1 there is a column with VLOOKUP formulas that looks up the asset number in column A of Tab 1 and points to Tab 2 where the data that was exported from the accounting software program is located.Let's say that in July 2012 that Asset 1001 earned $35,000.On certain months, the VLOOKUP formula looks over to tab 2 and "returns" the $35,000 revenue with no problem.On other months, it will not return anything, apparently it does not like the formatting and does not "recognize" the asset number.
why the macro "try()" in the attached workbook does not work?
I get the error message: "Unable to get the Vlookup property of the WorksheetFunction class"
Sub try()
Dim i%
For i = 1 To 35
Sheets("Sheet2").Select
myValue = Cells(i, 1).Value
Sheets("Sheet1").Select
n = WorksheetFunction.VLookup(myValue, "A1:A11", 1, True)
Sheets("Sheet2").Select
Cells(i, 2).Value = n
Next i
End Sub
I'm trying to count the rows of a worksheet based on the location selection. Heres what I'm using:
[Code]....
Before I add the Vlookup, I get a number of 50. I should get at least 40+, but after adding the
[Code] .....
I get "0."
I'm wondering if I need to use VLookup differently in this case ????
I have a VLOOKUP formula that works when searching some cells but not others when both cases should work.
Q: Does VLOOKUP have a certain maximum amount of characters it can search? If a cell contains more than this amount of characters will VLOOKUP not work?
This is what seems to be happening on my spreadsheet. The VLOOKUPS that refer to the cells with more than the average amount of characters seem to fail. The same happens with INDEX.
I have a VLOOKUP formula, so when the cell above (C5) has a value, it returns the value from a defined list. Simple so far and it works great when I manually input the value in the cell (C5).
The problem occurs when I change C5 to contain an AVERAGE formula? Any ideas why it will only work when there is a plain old value in there, but not a formula?
This is the VLOOKUP formula I'm using:
I used vlookup function in cell C3 to find ID of employees in Sheet 1 in source workbook and then, I imported the Sheet 1 in master workbook.
The vlookup didn't work in master workbook. The cell C3 in sheet 1 that I imported is blank.
The original got the ID in cell C3, then I don't see the value in cell C3 in master workbook.
The for loop don't work in my excel 2010 macro. Probably the problem might be the Range("Fi") construct with the variable "i"?
Dim i As Integer
For i = 4 To 10004
Cells(i, 63).Select
Cells(i, 63) = Application.VLookup(Sheets(3).Range("Fi"), Sheets(4).Range("F:AY"), 45, False)
Next i
i have created a Vlookup that pulls data from another work sheet, it all works fine apart from this one thing....
On a work sheet i have a lot of hyperlinks that work fine, but as soon as they get pulled over using a Vlookup, the name of the hyperlink comes accross for example "link 1" but you can not click on it to take you to the link like you can on the original one.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(ActiveCell, Sheet8.Range("C16:Y1000")) Is Nothing Then Exit Sub
Dim rw As Integer
Dim arw As Integer
rw = 16
[Code] .....
As you can see, my code is located in the sheet8 worksheet object. Now, I have a few questions about this. Because I am located in the sheet8 worksheet object does that mean my code can only work in sheet8, i.e., the following won't work because I am in a Sheet8 worksheet object?
Sheet10.Range("B12) = ..... ....... .....
This is not returning a value in Sheet10? My question is how do I make my code return a value in Sheet10?
I have a question in regards to excel. I have a set of data arranged as follows:
Date System Desc
3/7/14 IPE Alphamo
3/7/14 IPE Beta
3/7/14 i3 Gammana
7/7/14 ews Pisqrt
7/7/14 IPE Jaque
8/7/14 saa Mistiqe
And I need to put them into a calendar with the following format:
3/7/14 7/7/14 8/7/14
IPE Alphamo Jaque
IPE Beta
I3 Gammana
ews Pisqrt
saa Mistiqe
I have tried index and match, vlookup and etc but it didn't work.
I have problem with a spreadsheet that I am trying to create.
I have a large sheet of data which is dumped in from another program. This contains our deliveries and orders etc.
Now for planning purposes, I would like to see how much of each item I have on order.
I can use VLOOKUP, but that will only give me the amount for the first order it encounters. But not the 3rd, 4th etc. I could use SUMIF but I need the dates as well. After doing some searching I think I have found a way of doing this: I can get the first easier enough:
=VLOOKUP(D$11,'purchase order'!$A$1:$K$6000,5,FALSE), this gives the first order than the another =VLOOKUP(D11,'purchase order'!$A$1:$K$6000,11,FALSE) for its date.
For the second column to check any other orders I thought I could find the cell referance for the first SEARCH: which is
A108: ="A"&MATCH(D11,'purchase order'!A:A,0).
Is there any way of using this Reference to start a new VLOOKUP. So the Lookup Range starts at this reference?? To make things harder it is on another sheet.
I am having difficulty with a Vlookup in Excel 2003. Basically I have converted both fields to Text using the text function =TEXT(A2,"0") and have tried matching the values but just get an #N/A error and I have also converted both back to number format but still get the #N/A error....when I do a "=" operator function it returns a FALSE value but I cannot see why as both cell are just 4 or 5 digit number.
View 3 Replies View RelatedExcel spreadsheet will contain a form that will consist of drop down boxes (data validation). Each drop down box will define the data that can be selected in the next drop down box.
The way I initially went about it, is creating nested IF statements. However, we all know there is a limit of 7 nested IF statements. I have 10! So below formula does not work:
=if(B5=1,F5:I5, if(B5=2, F6:I6, if(B5=3, F7:H7, if(B5=4, F8:J8, if(B5=5, F9:H9, if(B5=6,F10:G10, if(B5=7,F11:H11, if(B5=8,F12:H12, if(B5=9, F13:I13, if(B5=10, F14:K14))))))))))
I tried other workarounds such as CONCATENATE, or & signs. No luck. VLOOKUP does not work also, because there are multiple columns in col_index_num. Anything else I try gives me this message:
“The List Source must be a delimited list, or a reference to a single row or column”
What should really happen is this:
User selects value in first list box. Second list box shows values associated wih the value from the first drop down only.
I built an Excel Macro to pull information from my schedule and compile it within another Worksheet. The Macro below searches for an instance of "Unavailable" and then populates my Data Worksheet with the WeekDays (ie: M-W-F or ALL Week), the Details (ie: Vacation or Training) and the Name of the employee. I struggled with a way to populate my employee name as "unavailable" isn't always offset by the same amount of characters to employee name (as it is with WeekDays and Details). Instead, I collected the row in which "Unavailable" was found.
I used the Vlookup function to populate the number of Absences and it worked swell.
=VLOOKUP(C2,O:P,2,FALSE)
C2 is populated with Weekdays (ie: ALL week or M-W-F)
O contains a list of possible day combinations
P contains the number of days
I hoped to use a similar function to populate my employee names. This didn't work well a 'tall.
=VLOOKUP(A2,L:M,2,FALSE)....................
i want to link one cell to another sheet if that cell is not blank. in other words if A2 says Decor, then I want to have the data on Sheet1 in A2 link to Sheet2 and say Decor. i thought i was clever and in the cell i wanted the link to go i wrote
=IF(Sheet1!A2>"",Sheet1!A2)
but it didn't work....
I can't get the text box function to work on this spreadsheet.
View 2 Replies View RelatedI had a happy macro that copy and pasted sheets in an output folder for all excel files from a target file that included the desired changes. it worked fine. then i realized that when pasting a sheet, the text is limited to 250 characters, so an important portion of my sheet (some instructions in various cells) was not coming over. So i created the following which will copy the columns, but some of the row formatting is different and doesn't line up. my questions:
-is there a better way around this text limitation?
-if not, is there a way to copy the row formats for this section and include in my macro?
-is there a way to copy the cells (all or a range) themselves while using "ThisWorkbook", thereby including all the appropriate formating? it seems to not like to do that.
‘Copy columns from target sheet
Sub Perf_rev_subfolder_replace()
'Update the constant here if necessary
Const sOutputFolder As String = "M:ODPerf review2010 oolsTest folder est"
With Application
. ScreenUpdating = False
.DisplayAlerts = False
.EnableEvents = False
End With
For Each fl In CreateObject("scripting.filesystemobject").GetFolder(sOutputFolder).Files
If InStr(fl, "3.0") > 0 Then
With Workbooks.Open(fl..............................
I am trying to make a calculator inside of Excel...learning how Text Boxes work in conjunction with CommandButton. I am trying to code the button to display inside of the text box. I have never coded a text box before to do anything like.
note: For right now i am just looking at being able to click on a button [numbered 0-9] and have them dsplayed inside the text box. After that I want to be able to set up an addition, subtraction, etc button to actually have the math done.
(ie...if Button 1 is clicked, 1 will be displayed, if Button 2 is clicked the display will adjust to show 12, etc etc)
HTML Code:
If Left(Range("H18"), 7) = A23C567 Or Left(Range("H18"), 7) = A65C321 Then
ActiveSheet.Cells(6, 7).Value = "Business and Private Banking"
End If
Im trying top use the above bit of code and it does not work when the criteria is Text , so if I simply change the above to =1234567 it works fine -- But I need it to be alpha numeric
I have a spreadsheet with data similar to the following:
12111000 MILK, COW'S, FLUID, LOW PERCENT
27313010 BEEF, NOODLES & VEG (W/ CARROTS/DK GREEN), NO SAUCE
11100000 MILK, NFS
11111000 MILK, COW'S, FLUID, WHOLE
If I use the following code to pass in a string variable and then attempt to find the string it never sees the text in line 2; or any line that contains (). The code is simply a test to try and figure out what i'm doing wrong. The actual goal is to search the entire sheet for text similar to that entered in by the user and then copy every row that contains similar text into another worksheet.
Sub CopyStuff()
strVariable = "car" 'I have tried "*car*" also
With Worksheets(1). Range("b1:b500")
Set c = .Find(strVariable, LookIn:=xlValues)
If Not c Is Nothing Then
firstaddress = c.Address
Do
Set c = .FindNext(c)
MsgBox (test)
Loop While Not c Is Nothing And c.Address <> firstaddress
test = c.Address
End If
End With
End Sub
I know how to create a text link to other cells within a work book but how can I create a button which will do the same?
View 2 Replies View RelatedAnyways, the issue is that when I have some cells selected then use the text-to-columns, it works fine.. but when I select an entire column, it "acts a fool"...
I made this video to show the effect on my computer.
I am working in Excel 2010 (Windows 8) and am having real problems trying to find a function/formula that will work with both numbers and text. I am trying to identify if the contents of Col A cells and Col C cells on each row are duplicated within a worksheet, and if they are, to add a 'J'.
(Column A is a list of numerical company codes and Column C is a list of adviser codes using the letter A-G. If a company ID code has more than one of the same adviser codes referenced to it, it is termed 'Joint', hence the 'J').
The formula I've used is: =IF(A2:C2, FREQUENCY>1, "J")
But it tells me 'numbers only'.
I have a label control whose caption is set from text from a work sheet
How can I set the text of the caption to bold
Check the attachment, i could not make out this using vlookup, how to overcome this problem.
test.xlsx‎
i need to work out a formula for my spreadsheet which I use to work out cutting lists for timber frames. I need it to work out if the width of a job is for eg 2400mm i need to work out how many timber studs I need so the space between each stud is between 400mm and 500mm and this will need to work for a range of different sizes of frames. I have it written at the moment and it just devides the width by 400 and gives me a amount of studs but it would work much better if it could space them between 400 & 500.
View 4 Replies View RelatedIn a project i am compiling i need to work accurately with times to calculate the work progress of the people in the workshop thus....here goes....
I have in work book #1 (7) sheets mon to fri + complete week + a sheet where all job numbers are collected.
From monday to friday the workmen log their times as a start time and a end time. This has to be then calculated to a total hours:mins spent per job, wich in turn then has to be calculated to a total hours:mins spent per day. And the on the complete week sheet recalculated as a total time worked per week.
I have spreadsheet A with 14 columns of data ie Col A to N, in Column I there are file names. Somewhere within the file names is the client code. The file names do not conform to a standard naming convention so the client code is not always in the same position or the same number of characters long. I have a separate spreadsheet (spreadsheet B) that has the list of client codes in column A and the associated business unit code in column B.
I want to be able to find the client code within the file name of spreadsheet A and then add the associated business unit code to column O
i have a made a macro that copies info to a new sheet now that is working great but if i change the name of the work book it wont work any more so i need the macro to work with what ever name i give the workbook
the current name is
AVERAGE PRICE (update 2009) Mimmos Armico 170809.xls
i have attached the code in notepad ...