autofill cells by entering date

azii

Board Regular
Joined
May 26, 2011
Messages
80
Hello there
I am trying to solve this issue but I am stuck. I need help to resolve this problem
I have data In table-1 and I have to enter date and get the data datewise in table-2, I have 3 heads in table-2 i.e. Fatima, Engro and Sona/ffc
table-2 is showing position.
I am using this formula
=IF($K$2=$D$2,INDEX($B$2:$I$50,3,3),IF($K$2=$E$2,INDEX($B$2:$I$50,3,4),IF($K$2=$F$2,INDEX($B$2:$I$50,3,5),IF($K$2=$G$2,INDEX($B$2:$I$50,3,6),IF($K$2=$H$2,INDEX($B$2:$I$50,3,7),IF($K$2=$D$2,INDEX($B$2:$I$50,3,8),""))))))
but I can't follow this formula because I would have more data spreading horizontally (e.g. A to Z and so on...)
please help me.


TABLE-1

ABCDEFGH
1Receiving Date 16-Nov-1226-Nov-1227-Dec-1228-Feb-135-Mar-1322-Mar-13
2ParametersUnitFatimaFatima Fatima Fatima Fatima Fatima
3Moisture% 0.180.11 0.140.25 0.220.21
4Biuret% 0.970.97 1.121.03 0.911
5Mesh Size
6+2.80 mm% 2.56.5 2.1 2.0 5.73.8
7+2.40 mm% 16.417.5 14.0 13.6 17.720.4
8+2.00 mm% 46.739.4 46.7 45.8 40.244.1
9+1.70 mm% 25.331.1 29.0 24.3 24.124.5
10+1.40 mm% 5.64.5 5.2 8.0 7.0 5.0
11+1.00 mm% 2.50.9 1.5 4.3 2.51.4
12+0.50 mm% 0.80.1 0.8 1.7 1.90.7
13-0.50 mm% 0.20 0.7 0.3 0.90.1
141 ~ 2.4 mm% 96.593.4 96.4 96.0 91.595.5
15Fines% 1.00.1 1.5 2.0 2.80.8
16Avg. Prill Sizemm 2.112.17 2.09 2.05 2.112.16
17Avg. Crush StrengthGrams8071291 806806 802817
18ParametersUnitEngroEngro Engro Engro Engro Engro
19Moisture% 0.210.14 0.220.32 0.240.27
20Biuret% 1.030.8 0.991.19 0.941.02
21Mesh Size
22+2.80 mm% 5.579.1 4.6 0.9 6.3 5.8
23+2.40 mm% 14.614.7 13.3 9.0 17.3 17.1
24+2.00 mm% 34.24.7 34.2 28.4 36.1 32.3
25+1.70 mm% 35.04.4 36.4 50.3 29.6 37.1
26+1.40 mm% 8.40.3 9.4 6.0 8.5 6.0
27+1.00 mm% 1.60.1 1.6 2.6 1.5 1.0
28+0.50 mm% 0.50 0.4 1.8 0.5 0.6
29-0.50 mm% 0.20 0.1 1.0 0.2 0.1
301 ~ 2.4 mm% 93.820.9 94.9 96.3 93.0 93.5
31Fines% 0.70 0.5 2.8 0.7 0.7
32Avg. Prill Sizemm 2.092.94 2.07 1.95 2.13 2.1
33Avg. Crush StrengthGrams8194645 804801 806 812.0
34ParametersUnitSona/ffcSona/ffc Sona/ffc Sona/ffc Sona/ffc Sona/ffc
35Moisture% 0.100.19 0.160.22 0.290.24
36Biuret% 0.880.96 0.910.91 0.920.9
37Mesh Size
38+2.80 mm% 5.73 3.9 7.8 5.33.3
39+2.40 mm% 15.914.5 10.3 18.7 17.910.6
40+2.00 mm% 31.960.8 70.0 52.0 41.162.8
41+1.70 mm% 34.718.8 13.1 13.0 25.420.2
42+1.40 mm% 9.61.9 1.6 4.9 7.21.8
43+1.00 mm% 1.50.9 0.7 2.4 2.10.8
44+0.50 mm% 0.50.1 0.3 1.1 0.90.4
45-0.50 mm% 0.20 0.1 0.1 0.10.1
461 ~ 2.4 mm% 93.696.9 95.7 91.0 93.796.2
47Fines% 0.70.1 0.4 1.2 1.00.5
48Avg. Prill Sizemm 2.092.18 2.19 2.21 2.142.16
49Avg. Crush StrengthGrams814951 821822 808819




<colgroup><col><col><col><col span="2"><col><col><col><col></colgroup><tbody>
</tbody>


TABLE-2

5-Mar-13
FatimaEngroSona/ffc
0.220.240.92
0.910.940.94
- - -
5.76.36.3
17.70.20.2
40.236.136.1
24.129.629.6
78.58.5
2.51.51.5
1.90.50.5
0.90.20.2
91.59393
2.80.70.7
2.112.132.13
802806806

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
My formula didn't use OFFSET:

=INDEX(INDEX($C$2:$H$49,0,MATCH($K$1,$C$1:$H$1,FALSE)),MATCH(K$2,$C$2:$C$49,FALSE)+ROWS(K$3:K3))
 
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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