Excel Spreadsheets and Vlookups - excel

I have spent about 2 days now trying to copy and paste row by row...
I have about 69 out of 600.
My problem is this: I have 2 Spreadsheets. Spreadsheet 1 has the name of procedures 1-602. In Spreadsheet 2 I have the same procedures followed by their corresponding duration times, and specialties. Spreadsheet 2 however, is a master file so it has about 10,000 procedures. I have to literally Ctrl Find the procedures from spreadsheet 1, then copy and paste the information following the name in A2:A6 or B2:B6. I have tried IFError and Vlook up but it says that I am missing parts to my formula. Is what I am trying to do possible? What I want it to do is to look at the procedure name from Spreadsheet 1, find it in spreadsheet 2 and bring back that information on the rows behind it ei. A2:A6.

Try the following, update the +0 to +1, +2, etc. to retrieve additional rows.
=offset(sheet2!$A$1,match(Sheet1!A1,Sheet2!$a:$a,0)+0,0,1,1)

Related

Get the name of column header and export to different excel worksheet

I have to work with different checklists in different Excel workbooks in order to organize the progress.
I made a summary where I set a counter in the number of items that I am missing for different workbooks using the formula shown here:
=SUM(LEN(XXX)-LEN(SUBSTITUTE(XXX,"pending","")))/LEN("pending")
However, in order to not have to consult to each of the workbooks to find out which items are pending to complete, I am requesting some guidance to understand if it's possible to say that:
If item in cell is pending, extract the name to a different cell in my summary.
Here's an example workbook:
Summary example
Thank you
I have Comment and a partial solution.
I am ignoring the the cross workbook issues for simplicity.
Get the basics working and deal with that later.
In the formula
=SUM(LEN(XXX)-LEN(SUBSTITUTE(XXX,"pending","")))/LEN("pending")
the sum function is not used correctly. Sum add up all the numbers in
a list and/or range of cells. You have a expression. It will work but is not needed.
=(LEN(XXX)-LEN(SUBSTITUTE(XXX,"pending","")))/LEN("pending")
should work.
As for the sum of the item tagged with "pending" that can be done with a couple of extra rows that would be hidden in your final sheet.
In the sample sheet. Rows 4 and 5 are intermidate calculation rows that will be hidden for final display.
Row 4 has the same relative formula :
=if(B3="pending",B2,"")
for all cells. It copies the data in row 2 only if row 3 has the word "pending".
The objective is to concatenate all of the non blank details
into one cell. I chose a solution that would with Excel 2003+. (2019 could use TextJoin() as an alternative solution)
in row 5 Cell b5 has
=if(len(B4)>0,B4,"")
Starting with C5 the rest have the relative formula
=if(len(B5)>0,if(len(C4)>0,B5&"+"&C4,B5),C4)
This progressively concatenates the cells together ignoring blank cells.
F5 has the answer needed
C8 has the
=COUNTif(B3:F3,"pending")
To count the number missing
and D8 just points as F5 to pick up the results.
For presentation purposes hide rows 4 and 5.

Comparing two different Excel sheets in same workbook

I have two excel sheets. Sheet 1 has roughly 2400 rows (and will continue to grow) and sheet 2 has roughly 4400 rows (and will also continue to grow. Sheet 1 has one column and sheet 2 has 2 columns (but I only care about the first column). I need to compare sheet 1 and sheet 2 and be able to see what sheet 1 values are NOT in sheet 2. Ideally, this data would then populate a new sheet 3.
I have searched through many sites and many pages here with stackflow, but because I am so new at this, I'm not sure if I have come across what I need or not. Everything I have tried is not working.
Any help would be greatly appreciated!!
Additionally to the already mentioned vlookup or match alternatives you may copy the values from Sheet1 to a new worksheet and add a column "source" where you enter "Sheet1". The same you do with the values from sheet 2. And then you create a pivot table to see immediately which values are on which sheet:

how to optimize speed excel 2007 (±20,000 rows)

I'm in the process of working with an Excel file that contains two columns (old URL and new URL). But it contains about 20,000 rows.
And I have another file containing about 400 old/new URL that needs to be imported in the big ±20,000 rows file.
I have to do all kinds of processing, like:
- Find all duplicate rows (same two columns more than once...). That functionnality would be in a column and it would be good to run that function each time I add 1 row to check if that URL combination already exists in the file
Note that I already turned the sheet into a table.
2 questions now:
1) should I do some kind of vlookup from the ±20,000 rows sheet and the ±400 rows sheet, or VBA? I don't know what would be the best way to do this (i.e.: if that row from the ±400 rows sheet is not in the ±20,000 rows sheet, add it...). Should I use vlookups or populate arrays in VBA (speed-wise)? If I use vlookup, it is true that it is possible to put the vlookup function in a sheet and refer to it in every row instead of puting a vlookup function directly in every row?
2) How can I optimize the 20,000 rows sheet because now, each time I want to sort or filter, it takes an eternity to redraw and it freeze my PC for that time!
Thanks for you help.
Firstly to ommit the dupes from the 400ish row sheet that need to be added in, use a COUNTIFS formula against the big sheet, then sort by this value and only copy in things where there is < 1 for the value (or error).
Secondly I would probably do the same thing in the big sheet but referencing itself, anything with a value above 1 is a dupe.
Lastly, are there formulas in the 20,000 row sheet? I could set up a 20,000 row sheet with just a "1" in range A1:A20,000 and doing anything on it would be super quick. It all comes down to what data you have in there and what you can do to reduce it's load on the system (ie convert formulas to values if they no longer need to calculated)
Excel 2007 has a built-in feature and VBA you can use for your situation: Range.RemoveDuplicates or Data tab -> Data Tools group -> Remove Duplicates
For example data:
Click the Remove Duplicates button:
And you are done!
The VBA equivalent is:
ActiveSheet.Range("$A$1:$B$10").RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes
Note the 1 & 2 does not mean Columns A & B. It means the Columns of the selected Range.
If your worksheet only contains 2 columns, you could use UsedRange instead.

Combining data from 3 separate Spreadsheets in Excel

I'm trying to combine data from 3 separate spreadsheets:
-All three sheets have a common column called "Tag" which has ID numbers
-Sheet 1 contains the most info and will be used as the sheet where everything will be merged into.
-Sheet 2 has certain dates which i would like to move to sheet 1 but i want the info matched up with the correct ID numbers and hence end up in the same row in sheet 1 as the data in sheet 1 with the same ID number
-Sheet 3 also has certain info i would like to move to sheet 1 and i also want the info presented the same way as the info from sheet 2.
How should I go about doing this? I'm not as good with vlookup and pivot tables and im unsure what can help me best and how to do it.
thanks in advance for your help.
Here is an example of Vlookup:
You can simply use this formula to populate all the other data for each tag on your master worksheet.
Autofill is a way of populating formulas and values into other cells - by dragging your initial formula into those other cells. You should read about it as it is an essential part of nearly any use of excel.
http://www.homeandlearn.co.uk/excel2007/excel2007s2p2.html

Excel VLookup based on two variables across 3 sheets

I am trying to sum the totals of data stored in 3 sheets based on 2 variables into a summary sheet (ie. a forth sheet).
I want to match both the place name and the week number for each place on the summary sheet.
On the Summary table we have at the top the week number we want to use. A list of places in column A and the number of visits in column B.
THis formula worked.
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
In column B of the summary sheet for each row. However it only looks up data from one sheet not all 3. I tried this but it causes an error:
=SUMIFS(AND(ND!$V$3:$V$4000,GK!$V$3:$V$4000,TW!$W$3:$W$4000),AND(ND!$F$3:$F$4000,GK!$F$3:$F$4000,TW!$F$3:$F$4000),TEST!$A$1,AND(ND!$B$3:$B$4000,GK!$B$3:$B$4000,TW!$B$3:$B$4000),TEST!A3)
How do we get it to work.
Could you just use the formula
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)
3 times like
=SUMIFS(ND!$V$3:$V$4000,ND!$F$3:$F$4000,TEST!$A$1,ND!$B$3:$B$4000,TEST!A3)+SUMIFS(GK!$V$3:$V$4000,GK!$F$3:$F$4000,TEST!$A$1,GK!$B$3:$B$4000,TEST!A3)+SUMIFS(GW!$V$3:$V$4000,GW!$F$3:$F$4000,TEST!$A$1,GW!$B$3:$B$4000,TEST!A3)

Resources