Arrange two sheets of headings in the same way.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,844
Office Version
  1. 365
Platform
  1. Windows
I need to compare the data on two sheets in the same workbook, so the third sheet will have the variances, and the third sheet will have the formula like sheet1!QA32-sheet2!QA32, therefore I need to arrange the two sheets in the same way. How do I align the headings to get the correct data on the two sheets?
A formula will work, I am using =INDEX(MATCH formula,
Any suggestions, please?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Is this what you are looking for - Check Cell E1

Book1
ABCDEFG
1Heading1Heading2Heading3Heading1Heading2Heading3
2DataDataDataDataDataData
3DataDataDataDataDataData
4DataDataDataDataDataData
5DataDataDataDataDataData
Sheet1
Cell Formulas
RangeFormula
E1:G1E1=A1:C1
Dynamic array formulas.
 
Upvote 0
Is this what you are looking for - Check Cell E1

Book1
ABCDEFG
1Heading1Heading2Heading3Heading1Heading2Heading3
2DataDataDataDataDataData
3DataDataDataDataDataData
4DataDataDataDataDataData
5DataDataDataDataDataData
Sheet1
Cell Formulas
RangeFormula
E1:G1E1=A1:C1
Dynamic array formulas.
No, this will only tell me if the data in this cell is the same as on the other cell. true or false. I wanted to arrange one column headings the same as the other so I can use the formula to check if the value is the same as in another sheet.
I used =INDEX(MATCH formula, and sort the heading same as the other sheet.
 
Upvote 0
That is what I'm telling - See Formula in cell E1, it has copied headings from previous range and shall keep them synced at all times

This way you can use INDEX-MATCH efficiently.
 
Upvote 0
Thank you, Sanjay,
I should have explained it. I have two lists of almost the same headings, one list has 450 columns headings, and another has 435 columns headings, I need to compare the two headings, some of the headings are not the same, for example, one heading may have OIJ IT 2767, and the other heading may be
OIJ 2767, So I need to compare the two headings and move the unmatched to the right of the headings.
 
Upvote 0
Now I understand what you actually want. Check this. It might give you some starting point to work with.

First finding the odd ones, the second challenge shall be to bring them in same sequential order.

All Records.xlsb
ABCDEFGHIJK
1Heading1Heading2Heading3Heading4Heading33Heading5Heading6Heading7Heading8Heading9
2
3Heading1Heading22Heading2Heading3Heading44Heading4Heading5Heading6Heading7Heading8Heading9
4
5
6
7Check Headings
8Heading1Heading2Heading3Heading4Heading33Heading5Heading6Heading7Heading8Heading9
91111011111
10
11
12Heading1Heading22Heading2Heading3Heading44Heading4Heading5Heading6Heading7Heading8Heading9
1310110111111
Sheet1
Cell Formulas
RangeFormula
A8:J8A8=A1:J1
A9:J9A9=COUNTIFS($A$12#,A8)
A12:K12A12=A3:K3
A13:K13A13=COUNTIFS($A$8#,A12)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A12:K12Expression=A13=0textNO
A8:J8Expression=A9=0textNO
 
Upvote 0
Sorry for the late reply. Yes, this worked, but I no longer working on the project, but I learned something new.
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,611
Members
449,109
Latest member
Sebas8956

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