How to change columns into headers?

stan255

New Member
Joined
Jul 27, 2015
Messages
3
Hi, I'm new here so I apologize for my question's lack of clarity.
I want to:
1. Move my C columns to be a header column
2. Move the D column to be under the same C column
3. Remove any duplicate A and B column after moving column C and D
I think its better if I post a picture of what I'm trying to accomplish.
excelquestion.png
 
Hi, I'm new here so I apologize for my question's lack of clarity.
I want to:
1. Move my C columns to be a header column
2. Move the D column to be under the same C column
3. Remove any duplicate A and B column after moving column C and D
I think its better if I post a picture of what I'm trying to accomplish.
excelquestion.png
The picture is blurred. Another upload?
 
Upvote 0
Assuming:
Column A is sorted in ascending order
Columns A&B are whole numbers
Column B < 100

Code:
G2: =SMALL(IF(FREQUENCY(100*$A$2:$A$15+$B$2:$B$15,100*$A$2:$A$15+$B$2:$B$15),$A$2:$A$15),ROWS(G$2:G2))

[B]H2:[/B] =INDEX($B$2:$B$15,SMALL(IF(FREQUENCY(100*$A$2:$A$15+$B$2:$B$15,100*$A$2:$A$15+$B$2:$B$15),ROW($B$2:$B$15)-ROW($B$2)+1),ROWS(H$2:H2)))

I2: =SUMPRODUCT(($A$2:$A$15=$G2)*($B$2:$B$15=$H2)*ISNUMBER(SEARCH(I$1,$C$2:$C$15))*$D$2:$D$15)

H2 is an array formula, to be confirmed with Ctrl+Shift+Enter
Copy I2 to J2
Copy G2 thru J2 down.
 
Upvote 0
Hey Marcel, appreciate the help.
I tried out your solution and here's what I got.
excelq2.png


There are 2 things that I'm actually looking for here.
1. There is only degree 1. I'm actually looking to add in all degrees for each school.
For school 1, there is degree 1 and degree 3. For school 2, there is degree 3 and degree 5.

2. Is it possible for Excel to detect column C and match it according to the column?
Some schools have bachelor's degree so the column for that school for bachelor's degree should be 0, etc.

This is such a complicated task because the main file has over 17 degree types.
 
Upvote 0
In your actual file you appear to have duplicate combinations of school|degree|level with different values in the graduate column. How do expect those rows to be dealt with in the final table?

Example:

Excel Workbook
ABCD
4471007513.0104Bachelor's degree18
4481007515.0102Bachelor's degree10
4491007515.0102Master's degree4
4501007515.0102Bachelor's degree3
4511007515.0107Bachelor's degree0
Sheet2
 
Upvote 0
Have you tried using a Pivot Table?
Ken


Hey Marcel, appreciate the help.
I tried out your solution and here's what I got.
excelq2.png


There are 2 things that I'm actually looking for here.
1. There is only degree 1. I'm actually looking to add in all degrees for each school.
For school 1, there is degree 1 and degree 3. For school 2, there is degree 3 and degree 5.

2. Is it possible for Excel to detect column C and match it according to the column?
Some schools have bachelor's degree so the column for that school for bachelor's degree should be 0, etc.

This is such a complicated task because the main file has over 17 degree types.
 
Upvote 0

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