I am having an issue where sorting on a sheet is causing an issue on another sheet where the data is referenced.
Here is an example to make it easy to understand:
Sheet 1!A1 has a list of random names, Sheet2!A1's formula is "=Sheet1!A1". I am adding new columns to Sheet2 such as B, C and D.
When I sort the values of Column A in Sheet 1, I see the sort order in Sheet2!A reflects the change, but not the columns B,C and D. How can I tie the Columns B,C and D, to column A in Sheet2?
Thank you in advance,
Gokalp
Convert sheet 2 to a table and then use it to sort your data. Highlight the data and then click on Insert on the ribbon at the top and click table. You may need to make a header row. Then sorting will be done on sheet 2.
Related
I need help with issue I'm having.
I got 2 sheets, 1st sheet is the table I need to fill and 2nd one is the data.
In the data part I have column A with employee number and B with names.
On the first sheet I have table that I need to fill but table is like this:
Blank row
Number column + Name column
Blank row
So when I just drag data to auto fill every third row formula skips employees and I only get every third name.
What can I do to fill every third row from 2nd sheet but without skipping names?
Kind of round about way that I have done it. On datasheet insert column a and put in values A1(1)A2(3)A3(5), Fill down this pattern this is to use as an index for filling the columns on your other sheet. On the sheet you are filling, insert a new column a and add 1,2,3 and fill down.
I used this vlookup:
=IFERROR(VLOOKUP(A1,datasheet!A:C,2,FALSE),"")
I copy this to column b and fill both of these columns down. Now you have your values. You will have to do a copy and paste values to get rid of the formulas once the info is in there. Select all, copy. and Ctrl+Alt+V and select values to do the paste special.
Hope this helps.
I have a column with dates called "dates". This column contain dates from 01.01.2010 to 31.12.2010. it should have about 365 rows, but it actually has only 231 rows, because the data was not collected regularly. The others are missing, and I'd like to fill the gaps in time.
How can I fill the array of this column with the missing dates? I want to add 134 rows in the place of the missing ones, filling in the missing dates.
Create another sheet and put all the dates in column A in your new sheet.
Make sure your sheet with the data in it has the data column all the way on the left (important for how Vlookup works)
In your new sheet, starting in Cell B2 put numbers 1 through however many columns you have in your data sheet along that top row.
In your new sheet use Vlookup to find all the rows where there are data
=VLOOKUP($A2,DataSheet!$A$1:$C$20,B1,FALSE)
Note that the lookup column ($A1) is locked in to the column but not the row and that the range you are looking up is locked in in all directions. This will allow you to drag to the right/down and fill everything in.
Drag to the right then drag all the way down.
there will be #N/As where you cannot find a match which you can suppress with either an IF statement of conditional formatting. But now you have a row for every day with blanks when there is not data!
I found a solution with a similar formula, but the result was the same.
First, I got the two columns of data—"date" and "values" in the columns A and B of the worksheet. Each consisted of 231 rows. Then, I spread a full array of dates—365 in a new column D. Finally, I used this formula:
=VLOOKUP(D2;$A$2:$B$1056;2;FALSE)
in C2 and obtained the only the values from column "values" corresponded to the new dates of column D.
Thanks for Brad's answer for directing me to the VLOOKUP function.
Here's what I'm trying to do using Excel 2010 VBA:
I have a list of course names in column B. Each time the course name changes I've inserted two blank rows. What I need to do is number the rows in column A, stop numbering when I hit a blank row and then restart the numbering when I get a new course name in column B. Any assistance is greatly appreciated.
Easier than VBA. Put this formula in A2, and copy down
=IF(ISBLANK(B2),"",MAX(A$1:A1)+1)
I have Sheet A with 500 line items.
Suppose I have applied filter to show line items "2","44","68" and so on
From Another Sheet i want to select some rows and paste them in these filtered rows.If I paste,they get copied on line items 2,3,4,5, and so one instead of 2,44,68,etc
Can Someone please help me.I tried paste special,but it has same issue.
I also tried selecting the area to paste,then clicking alt + ; but the data also gets copied into unfiltered items.
This is more of an approach solution then a coding solution. I assume that the current order of the rows must be maintained.
Add a column to to your sheet, use autocomplete to number the current order of the rows.
Sort by your filter value(s) - if you have multiple values, just add another column and put a single unique value in it
Paste your values
Sort by you current order column, to restore the orginal order
If it is with same sheet you can make the two columns adjacent by hiding other columns in between. You can block the data and drag it to next column.
For eg.
I have column A, B, C, D.
Let A be ZIP CODE & Column D is 'Shipping Service'
I need to have ZIP CODE(Column A) with '95035' to have Shipping Service as 'Fedex'
Filter the column A with '95035'
Hide the column B & C
Drag the values from A to D directly where the values are copied to the adjacent cells.
Note: If you use two separate sheets copy the columns entirely to the sheet 1 adjacent to the column you want to copy and again take copy the entire column back to Sheet 2. This will work if both sheet have same number of rows.
Thanks,
Karthik
The easiest coding solution is to use vlookup http://office.microsoft.com/en-us/excel-help/vlookup-HP005209335.aspx
On sheet1 from Sheet2 use
=VLOOKUP(B3,Sheet2!A:B,2,FALSE)
I have an excel sheet with columns A-J. Column A-F is filled manually while columns G-J is calculated based on values from A-F.
When filling rows with data in columns A-F, the cells in column G automatically fills with the correct formula while I have to manually "drag" colums H-J down to make them repeat down the rows.
Is there a way of making columns H-J behave like column G. And why is column G behaving like this?
I have the option "extend data range formats and formulas" turned ON.
Thanks!
No idea why your sheet is behaving as it is, but if you format the data as a data table then it will behave as you want.