How can I make every page in excel dynamic with each other - excel

I'm currently creating/organizing what was one excel file with 50 items.
Within these 50 items, there were roughly 30 things they were linked to.
I split up the 30 items into 3 total pages-- roughly 10 items per page to simplify this question.
I want to know how I can make each page dynamic with one another?
For example, if I have a,b,c, d, ...-y as my "25" items on all 3 pages in column A, how can I make sure that column A stays the same on each page?
If I sort page 2 by column 4 by let's say value, it'll rearrange column A. How can I also make sure that if that happens, that column A in pages 1 and 3 also are in the same order as page 2, while also making sure the values in the columns B through K match up with column A before it was restructured.
Sorry if that's confusing. That's why I'm here.

Related

How can I take a data set that is 2 columns by 225 rows and print it in as few pages as possible?

In excel, I have to make a table list for 225 people. Column #1 is name. Column #2 is table number. I don't want it to be 6 pages long. If I move 56 rows side by side and do that 4 times I lose the sorting (alphabetizing ability). How can I make it 8 columns (The first A-J, the second K-P, the third Q-U....) or something like that?
I tried selecting 56 rows and moving them. Then the next 56 and moving them etc. But you lose the ability to sort and filter.
I tried transposing then using from table range making custom columns, but it didn't quite work and is very tedious. Is there an easier way?

Count Matches in an Array, Duplicates Once

I have an array with a number of columns but am looking to count based on two columns in particular. I'm looking to have a function that will count how many blank products (column C) are in production (Column B). See image below, the desired output here would be 2 (111 and 333 are in production. 111 appears twice but should be counted only once).
Case Example Image
I'm sure there is a better way to do this, but this will get the job done.
=COUNT(UNIQUE(C1:C4*--(B1:B4="In Production")))-1

Is there a better way to do this (Excel)

I have a dataset with 5 main categories and 26 subcodes. Each item falls under any one or more of the 5 categories and is assigned ~1-6 of the subcodes.
I'm taking the few thousand entries and breaking it down as shown below in the pictures.
Right now I am using filters to only show the items that have an "x" in the right columns and taking that data to a different tab where I use the =SUM(LEN(range)-LEN(SUBSTITUTE(range,"text","")))/LEN("text") to pull out a count of each subcode from column G. I'm mainly wondering if there's a quicker way to get around having to manually do the filter for each category combination.
Anybody got any ideas?
Thanks,

Give warning when duplicate values are placed in different keywords

Let's say I have a sheet with multiple columns but to make the example I only put 2.
What I want to achieve is to give the user a warning when the same person get's placed in different teams. (It's possible to have duplicate persons, but it's not allowed to have them in seperate teams)
First I thought I'll filter it so I can only see the duplicate and then check if the same person get's placed in 2 different teams. But now I see it's not possible to filter the duplicates. Then I thought using conditional formatting and check if the cell.color.interior is changed but I noticed it does not change it! Solutions provided on stackoverflow does not suffice for me. Neither do I want to a pivottable or an extra column since my sheet is already overcrowded.
Example:
Value A Value B
Tom Team 1
Ben Team 1
Tom Team 1 <- possible
Elle Team 2
Tom Team 2 <- not possible, give warning!
Rick Team 2
And the list goes on.
Does someone know I can give the user a warning when placing the same person in different teams?
Or how to get to see the duplicate values in the sheet or get it in a range in vba?
Thanks!
Okay then, since you cant sort the table it requires a rather more brutal or complicated approach.
1) First a simple, quick approach
Although you could still add a temporary column, number it, sort the sheet based on the Value A field, then just iterate through the cells, looking for instances where
Cells(curRow, rowNumOfValueA).value = Cells(curRow-1, rowNumOfValueA).value
When this happens, check that the value in column 'ValueB' is the same for each item. If so, continue onto the next row. If not, mark the row in some way - setting the interior colour is often a good way to do it. You can then sort the table according to the added column, delete the column and then take action.
2) Second a brute-force
Starting at the first row, get the value in ValueA and ValueB, call them for example findMeA and findMeB
a) starting at the following row, check to see if ValueA matches findMeA. If it doesn't, move on to the next row. If it does match, ensure that ValueB matches findMeB too. if not, mark the row or add its index to an array for reporting when the sanity-check is done.
b) move to the next row, if it's empty, return to (2). If it's not, return to (a)
As you can probably see, the brute force approach gets exceedigly nasty cpu-wise as the number of rows goes up. With just 10 rows of data, it's 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 searches that need to be done, unless you make a mistake of logic and check every row against every row. Just 10 rows would be 100 checks. - 10^2
If, on the other hand, you sort the table first - you can get away with just N checks for every N rows. 10 rows takes 10 checks, 1000 rows takes 1000 checks. (I can't be bothered to find out how to easily calculate 1000 + 999 + 998 + .... + 1, but it's huge. Actually, it's about 500,000 (1000 + 999+1 + 998+2 + 997+3 ... 499+501 + 500). - that is 1000 + 499*1000 + 500
So, the brute force takes exponentially longer as the list grows, but the sort-first method takes linear time. Twice as big equals twice as long.
Sorted method: 10 items - 10 checks. 1000 items 1000 checks.
Brute Force: 10 items - 55 checks. 1000 items 500,500 checks.
I.e at worst case, brute force takes 500 times as long as a sorted approach. If it was only a few items, I'd just suggest brute-forcing it. Over half a million checks with VBA doesn't seem so pleasant though, so I'd sort the sheet, or at the very least - make a copy and sort then operate on that, before reporting the problems with the actual sheet.

How to share/duplicate column information in 2 or more lists

I have a 'master' list with say, 10 columns (1 - 10). I have another list(2) and want to display what is in, say column 3 in list 1 in list(2) so that both lists show the same info.
I also want the ability to change content in column (3) from either list 1 or list 2 so that both are updated.
Is this possible?
It is possible. You'll have to write an event receiver.

Resources