Filling of table based on horizontal & vertical data

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I have data as follows being generated in 2 columns, column A & column B as below:
Age Premium
205000
564000
323000
452000
291000
352000
371000
485000
544000
783000
902000
11000
153000
332000
431000
755000

<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>
</TBODY>
In column E4:E10, premium is to generated in increasing order.
Based on Age (as 0 to 20, 0 & 20 punched in different cells), Total number of premium has to be filled as below.
For no filling, null ("") is required.

PremiumAge
02021404160618081100
1000 1 2 1
2000 2 1 1
3000 1 1 1
4000 2
5000 1 1 1

<COLGROUP><COL style="WIDTH: 48pt" span=11 width=64><TBODY>
</TBODY>

How to accomplish?
Thanks in advance.
 
Excel 2010
BCDEFGHIJKLMNOPQ
1RELATIONSHIP AGE Premium Effective Premium
2SELF 4750005000Effective Ageband
3SPOUSE 435000Premium 02021404160618081100
4SON 195000100022
5SON 1750002000
6SELF 50400040003000
7SPOUSE 4640004000112
8DAUGHTER 214000500023
9DAUGHTER 154000
10SELF 3810001000
11SPOUSE 311000
12SON 111000
13SON 71000
14SON 465000

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I4=IF(COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&H$3,$C$2:$C$14,"<="&$I$3)=0,"",COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&H$3,$C$2:$C$14,"<="&$I$3))
K4=IF(COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&J$3,$C$2:$C$14,"<="&$K$3)=0,"",COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&J$3,$C$2:$C$14,"<="&$K$3))
M4=IF(COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&L$3,$C$2:$C$14,"<="&$M$3)=0,"",COUNTIFS($E$2:$E$14,$G4,$C$2:$C$14,">="&L$3,$C$2:$C$14,"<="&$M$3))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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