Required Desire Output using Index & Small Function

ravi2628

Board Regular
Joined
Dec 20, 2017
Messages
221
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Every One,

i required the Output which is highlighted in Green

Project NameWeek1Week2Week3Week4Person Name
P1
P22 5 S
P3 6 R
P4
P5 8R
P6
P7 5 R
P85 10R
P9
P10
P11
P12
Output
Person NameR
WeekWeek4
Existing Output
Project Name
1P30
2P58
3P70
4P810
5#NUM!#NUM!
6#NUM!#NUM!
Required Output
1P58
2P810
3
4
5
6

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

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hello,

You can adapt the following Array Formula

Code:
=SMALL(OFFSET($A$2:$A$13,0,MATCH("Week4",$A$1:$F$1,0)-1),ROWS(J$2:J2))

Hope this will help
 
Upvote 0
Hello,

You can adapt the following Array Formula

Code:
=SMALL(OFFSET($A$2:$A$13,0,MATCH("Week4",$A$1:$F$1,0)-1),ROWS(J$2:J2))

Hope this will help


Hi your formula worked but i have issue with it i want project name also to be populated automatically , and i have some query while working so i gave the example again.


Thanks & Regards,
Ravi




Project NameWeek1Week2Week3Week4Person Name
P1
P22 5 S
P3 6 R
P4
P5 8R
P6
P7 5 R
P85 10R
P9 10R
P10
P11
P12
Output
Person NameR
WeekWeek4
Existing Output
Project Name
1P30
2P58
3P70
4P810
5P910
6#NUM!#NUM!
Required Output
Project has to get Automatically Populated based on ValueValue
1P58
2P810
3P910
4
5
6

<colgroup><col><col><col><col span="3"><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hello,

If you input area is located in cells A1 to F13

You can have the Array Formula in cell J2 :

Code:
=SMALL(OFFSET(A2:A13,0,MATCH("Week4",$A$1:$F$1,0)-1),ROWS(J$2:J2))

and a standard formula in cell I2

Code:
=INDEX($A$1:$A$13,MATCH(J2,INDIRECT(SUBSTITUTE(ADDRESS(1,MATCH("Week4",$1:$1,0),4),1,"")&":"&SUBSTITUTE(ADDRESS(1,MATCH("Week4",$1:$1,0),4),1,"")),0))

Hope this will help
 
Upvote 0
Solution

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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