Lets say I have columns with dates on them.
The file path is something like this:
='U:\Report\[Date 042516.xls]Joe Smoe'!$C81
Where the '042516' is variable to each column. !$C81 is variable to each row in the original document.
How do I do this and pull up the respective numbers from the reports and dates?
I think I understand - so you have a column with numbers (042516,042517,042518, etc), and you want the formula to update that part of the path, as you drag down?
If your 042516 is in C1, you can use this:
=INDIRECT("'U:\Report\[Date "&C1&".xls]Joe Smoe'!$C81")
(Note the workbook being referenced, Date 042516.xls, must be open for Indirect to work.)
Related
I'm not sure what excel function to use.
I have two columns 'asset tag' and 'computer name'. Both unique values. The asset tag has a name like '11111' the computer name has a name like 'AA-11111-BB'.
I need a formula to output every asset that is also in the computer name column into its own column.
As you see the asset tags name is inside the computer name between characters.
I don't know how to tie these two columns together when their names are not exactly the same.
IS the a wildcard if statement formula for two columns to accomplish this. Please see my screenshot as well.
Something like this might work if you will always have 5 numbers for PC name and it will either be in the middle or at the end of the string.
Have this formula reference the first computer name cell:
=IF(ISNUMBER(RIGHT(B1,2)),RIGHT(B1,5),VALUE(MID(B1,4,5)))
(this will return the Asset tag without all the extra characters)
Then to match them, you can do a vlookup to return the asset class (column P in example below is the same cell as referenced above, column A is your asset class number).
IFERROR(VLOOKUP(A1,P1:P3,1,0),"")
This may require some clean up if you have duplicates, but this should get you started.
There are two sheets (sheet1 & sheet2) in my Excel file, it's like daily work routine (entry date, pickup date, dispatch date). Some details will change as per the work flow and even new entries will appear.
I just need to compare both files if a change occurred in one cell it must have to show entire row of sheet1 (I can't specify exact headline for that all details are too precious and it has more than 100 headlines).
So if there is any formula for that please let me know like
IF+VLOOKUP
please correct below given formula
=If(RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX)=(RECHERCHEV(A2,sheet2!A8:FM257,1,FAUX);"";RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX))
It's the French version.
Try this array formula in cell A1 of sheet3 and drag across and down.
=IF(AND(EXACT(Sheet1!1:1,Sheet2!1:1)),"",Sheet1!A1)
Not really sure what you're looking to do here, and I don't speak french, but it looks like you have an extra parenthesis before your 2nd RECHERCHEV function.
Try this :
=If(RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX)=RECHERCHEV(A2,sheet2!A8:FM257,1,FAUX);"";RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX))
Though I'm not sure why the IF function uses semi-colons, but the RECHERCHEV uses commas, so maybe this:
=If(RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX)=RECHERCHEV(A2,sheet2!A8:FM257,1,FAUX),"",RECHERCHEV(A2,sheet1!A8:FM264,1,FAUX))
Also it seems you want the entire row to update, so I am not sure how this vlookup would work since the arrays start in different rows than the lookup value.
I have this excel formula which I'm hoping can be amended to extract the file name without the file extension. I know this can be done over two formulas but it would make the process I am working with a whole lot easier. I'm also trying to avoid VBA as I don't have any knowledge on it.
=IFERROR(MID(A1,FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+1,LEN(A1)),"")
Thanks!
You already have logic for finding the position of the last "\" character in string. You can use the same logic for finding the position of the last "." character in string. Then the difference of those two numbers minus one will be the length of the file name without the file extension. Use this length for the num_chars argument ot the MID function. For example...
=IFERROR(MID(A1,FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))+1,FIND(CHAR(1),SUBSTITUTE(A1,".",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,".",""))))-FIND(CHAR(1),SUBSTITUTE(A1,"\",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1,"\",""))))-1),"")
Note that this formula assumes that all file names have an extension. If some files have no extension then you would need to add extra logic to the formula.
It looks like you expect A1 to contain the filename, but you can do this all at once if you're willing to replace every instance of "A1" with Cell("filename",A1). Either way, it looks like you are overcomplicating the situation by looking to count the number of file paths, when really all you need is the "[" & "]" which encloses the name of the file.
If A1 is any random cell with nothing special in it, the formula looks like this:
=MID(CELL("filename",A1),FIND("[",CELL("filename",A1))+1,FIND("]",CELL("filename",A1))-FIND("[",CELL("filename",A1))-1)
If A1 holds CELL("filename",B1), then the formula looks like this:
=MID(A1,FIND("[",A1)+1,FIND("]",A1)-FIND("[",A1)-1)
CELL("filename",B1) looks at B1, and pulls the property "filename". In this case, it doesn't matter whether you use B1, Z10, etc. - it just can't be a circular reference. You can also use CELL to pull cell-specific info, such as cell address etc.
Then the MID function simply looks at A1, starts 1 after the "[", and picks up all the characters up to the "]".
Can Not Get My VLookUp In Excel To Return The Requested Data
I am trying to pull data from another sheet based on data selected from a dropdown on the main sheet.
All the formatting is "General"
=VLOOKUP(F15737,'Location Master'!$A:$J,2,FALSE)
It just keeps returning me #N/A
Try using the Index Match method. It's an alternative to Vlookup which doesn't require data to be sorted and can therefore be of more use.
The typical structure of this method is (the text inside the asterisk will give the ranges specific to your sheet:
=INDEX (**Column from which you want to return a value**, (MATCH(**Lookup Value**, **Column against which you want to lookup**,0))
In this case, if I've understood your workbook structure, the formula should look like this:
=INDEX('Location Master'!$B:$B,(MATCH(F15737,'Location Master'!$A:$A,0)))
This is a common problem with VLOOKUP(). Most likely you have some whitespace (A tab character or some spaces) after one of the values. Click on F15737 and see if there are any spaces at the end of it. Likewise, manually find the value in 'Location Master'!$A and check it for spaces or tabs after the value.
If the whitespace is found in F15737 then you can change your vlookup to be:
=VLOOKUP(TRIM(F15737),'Location Master'!$A:$J,2,FALSE)
If the whitespace is in the range to which you are looking up, then you'll need to trim all of those values, which you can do pretty quickly in a new column with the TRIM() formula.
If this doesn't solve the problem then you might have a number stored as text. Generally excel will tell you if this is the case within the cell with a little green corner indicator. To get Excel to automagically change a column from a "Number stored as Text" to a proper number you can:
Highlight the column
Go to Data>>Text To Columns
Click "Fixed Width"
Click "Finished"
Excel will then format everything automatically (dates to dates, numbers to numbers, text to text, time to time, etc.)
I have a column with filenames:
Excel1.xlsx
Excel2.xlsx
Excel3.xlsx
etc
etc
etc
and I also have this IF statement:
=IF('[MainExcel.xlsx]Data'!$C$4='[Excel1.xlsx]Data'!$C$4,IF('[MainExcel.xlsx]Data'!$E$4='[Excel1.xlsx]Data'!$E$4,7,IF('[Excel1.xlsx]Data'!$C$4>'[Excel1.xlsx]Data'!$E$4,5,0)))
So I am trying to comparate an Excel Worksheet (Data) from all these files (Excel1, Excel2, Excel3, etc) with a main Excel (MainExcel)
Any way of doing this without having to change the IF statement one by one in every row?
Thanks in advanced!
Use a combination of concatenate and indirect.
Since I don't know the full layout of your sheet I won't get too in depth but, for example
=IF(INDIRECT(CONATENATE("[",A1,"]Data'!$C$4"))=4,TRUE,FALSE)
where A1 is the cell that has the name of the other excel file.
You can use the INDIRECT function to build references to other workbooks, using cell references.
As an example, that you can build upon.
Assume:
Excel1.xlsx -> Excel3.xlsx respectively have the values 1, 2, 3 in
cell A1 on Sheet1,
All workbooks are open (or else we would have to add path information
that the file names were in column A
The following entries in column B would pull the appropriate values from the referenced workbooks.
=INDIRECT("'["&A1&"]Sheet1'!A1")
Just using what others have said, assuming that the cell containing the first workbook name "Excel1.xlsx" is in cell A1, then try:
=IF(Data!$C$4=INDIRECT("["&A1&"]Data!$C$4"),IF(Data!$E$4=INDIRECT("["&A1&"]Data!$E$4"),7,IF(INDIRECT("["&A1&"]Data!$C$4")>INDIRECT("["&A1&"]Data!$E$4"),5,0)))
Also, I note that it appears that the case in which the first comparison is false is not covered under your subsequent values (your function just returns the value "false").