Formula to Align Identical Rows, and Rows which match in Part

Goldenboy23

New Member
Joined
Oct 17, 2017
Messages
11
Dear all,

Fairly new to excel, and have been trying for several days to solve this one with no success. I have a scenario where i have several different columns (which are in reality account strings) and i am required to match them across each row. My issue is that not all rows will have information in them, and there is no one single column which will necessarily be complete. Therefore a simple V lookup will not assist. However, there are two columns (D&E) which when combined do contain all the information and i think can be used a driver for all the other columns.

Please see a simpler illustration (below) of my problem and the result i wish to achieve;

Problem;

ABCDE
111
1263
5322
64
565
46
747

<colgroup><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"></colgroup><tbody>
</tbody>


The end result i wish to see;

ABCDE
1111
222
33
444
555
6666
77

<colgroup><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"></colgroup><tbody>
</tbody>

I think an index and match may the solution, but i am just not quite able to fully solve it. P.S (the above is just an illustration for me to apply)

Any help will be greatly appreciated.
 
Hi, Just one more thing, i am finding that the formula works perfectly if the indirect array contains numbers only e.g 71224 on the individual sheet, but it say for example the cells in the individual sheets contain a mixture of text and numbers e.g if A2 on the open sheet contains 71-71224-71225-55 and A3 contains 71-71224-71228-58 .... and so on (and this is the case for all the sheets), then the return on the front sheet is blank. Is there any solution to this ?
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi. I'm afraid this is real hard to pull off with formulas, if at all possible.
All because you need that data in ascending order, which is easy to manage with numbers, but when it comes to text, you don't have a reference.
I can have the data bunched up in Front sheet, according to row position, but not in ascending order.

There may be some way to accomplish that with VBA, but I'm not familiar with that.
Maybe some other Forum user will be able to help you on that.

Good luck!
 
Upvote 0
Hi thank you for this... i have sent you a private message☺
OK. I’ll take a look.
Please refer to #4 of the Forum Rules & in the future keep all thread-related correspondence in the public forum.

There are many helpers in the forum that may want to join the thread and have a different (& possibly better) approach. As soon as something is provided privately, those additional helpers do not have the full information and will probably just bypass the thread instead of helping. Additionally, the forum owner wishes the forum to be a place where anybody can search for information. Anything provided privately will have no chance of showing up in searches.
 
Upvote 0
O.K thank you for this information. I think i may find a work around this by manipulating the information on the individual sheet to take out the "-" of the string i.e. so A1 would be 71, A2 71224, A3 71225 and so on. This would be the case on each of the separate sheets and it would pull through to the front sheet as follows

Open
A1 A2 A3
71 71224 71225

The effect of this would be that the separate sections on the front sheet would have 3 columns pulling through each from the separate sheets.

i have attempted to do this myself but have only got as far a manipulating the data on the sheets. I have been unable to pull through the respective columns on the separate sheet to the front sheet. Do you know how this can be achieved ?

Many Kind regards,

Goldenboy
 
Upvote 0
HI!
I guess we could try and do the same with three instead of one helper column for each source tab.
Please post a sample table of Open tab, for example, with representative, but not sensitive data.
 
Upvote 0
Hello,

So this is exactly what I am looking to achieve;

There are in total 5 sheets (4 sub-sheets and one front-sheet). Namely, the front-sheet, Prior,Posted Payment, Current1 and Current2.

Each row on each sheet relates to an account string combination. The front is a reconciliation of identical string combinations which exist across different sections.

Example;

Prior:
Account
comb1
comb2
Balance
712070
000000
000000
900
712070
802201
802201
150
712070
802853
802851
300

<tbody>
</tbody>



Current 1
Account
comb1
comb2
Balance
712070
000000
000000
300
712070
802651
802651
100
712070
802851
802851
200
712070
802853
802853
800

<tbody>
</tbody>


Current 2
Account
comb1
comb2
Balance
712070
000000
000000
-300
712070
802651
802651
-100
712070
802851
802851
-200
712070
802853
802853
-800

<tbody>
</tbody>


Posted:

Account
comb1
comb2
Balance
712070
000000
000000
100
712070
802651
802651
400
712070
802851
802851
700
712070
802853
802851
500

<tbody>
</tbody>


Payment:
Account
comb1
comb2
Balance
712070
000000
000000
700
712070
802201
802201
150
712070
802651
802651
300
712070
802851
802851
500

<tbody>
</tbody>

I am looking to build formulas on the front-sheet so each string from each sheet lines up (across section rows) with identical strings where these exist. If not there should be blanks.

Example:

Front-sheet;

PriorPostedPayment(D+H-L)Current1(M-Q) Current2(R-W)
Accountcomb1comb2BalanceAccountcomb1comb2BalanceAccountcomb1comb2BalanceAccountcomb1comb2BalanceAccountcomb1comb2Balance
712070000000000000900712070000000000000100.00712070000000000000700300.007120700000000000003000.00712070000000000000-300.000.00
7120708022018022011507120708022018022011500.000.000.00
712070802651802651400.00712070802651802651300100.00712070802651802651100.000.00712070802651802651-100.000.00
712070802851802851700.00712070802851802851500200.00712070802851802851200.000.00712070802851802851-2000.00
712070802853802851300.00712070802853802851500.00800.00712070802853802853800.000.00712070802853802853-8000.00

<colgroup><col width="51"><col width="50"><col width="64"><col width="50"><col width="54"><col width="50"><col width="64"><col width="42"><col width="48"><col width="50"><col width="64"><col width="41"><col width="54"><col width="50"><col width="64"><col width="64"><col width="41"><col width="44"><col width="56"><col width="52"><col width="64"><col width="51"><col width="32"></colgroup><tbody>
</tbody>

i hope i have explained this properly.

Kindest regards,
 
Upvote 0
Sorry to report that my method does not work in this new arrangement.
Problem is, after your strings were manipulated, data is not consistent as for unique, rankable numbers.
712070, for instance, which I assume is a code, appears in all rows, so that is misleading to address correct rows.

It occurred to me that maybe you could try assigning new, unique sequence numbers for each account string, in a helper column, in a source tab where all accounts are found.
Use vlookup or index/match to place those new sequential numbers next to respective account strings in the other source tabs.
And from those new sequential numbers, you could use the model I posted earlier.

Then in new columns in Front Sheet, use vlookup or index/match formula the other way around to place the correct account string for each sequential number.

It's laborious, probably a long shot, but it may work.

Good luck!
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top