Display Column Header Name of latest Status

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
579
Office Version
  1. 2016
Hopefully the solution is easier than the explanation!

I have a tab called “DataSheet”

In Column A is a Work Item Name.

In Columns B:E are the various stages of how the work itemis progressing

These columns will either contain a value, or be blank (thevalue can vary)

In Row 1 is the various stages the work item can be.

I have a second tab called “Stats”

In this tab, I have the name of any work item that is inprogress.

What I need is for the sheet to display the status its in.

DATASHEET

--COL_A--|--COL_B--|--COL_C--|--COL_D--|--COL_E--|
ItemName|Stage_1|-Stage_2-|-Stage_3-|-Stage_4-|
-----------------------------------------------------------------------
AAAAAAAA|--Comp--|--Comp--|
BBBBBBBBB|--Comp--|
CCCCCCCCCC|--Comp--|--Comp--|--Comp--|



STATS SHEET

AAAAAAAAA|--- (Should display “STAGE_2” )
BBBBBBBBB| ----(Should Display “Stage_1”)
CCCCCCCCCC| ---- (Should Display “Stage 3” )


Hope that makes sense!
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try:

=INDEX(Datasheet!$A$1:$Z$1,MATCH("zzz",INDEX(Datasheet!$A$2:$Z$1000,MATCH(A2,Datasheet!$A$2:$A$1000,0),0)))
 
Upvote 0
try this


Book1
ABCDE
1DATASHEET
2
3ItemNameStage_1Stage_2Stage_3Stage_4
4AAAAAAAACompComp
5BBBBBBBBBComp
6CCCCCCCCCCCompCompComp
7
8
9
10STATS SHEET
11
12AAAAAAAAStage_2
13BBBBBBBBBStage_1
14CCCCCCCCCCStage_3
Sheet3
Cell Formulas
RangeFormula
B12=LOOKUP(2,1/(INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),)>0),B$3:E$3)
 
Upvote 0
Apologies, a quick followup question, if the cell contains the word "Returned" can the formaula be adjusted to either include "Returned" on the end of the result (ideally) or go back one cell to the left and display that heading?

try this

ABCDE
1DATASHEET
2
3ItemNameStage_1Stage_2Stage_3Stage_4
4AAAAAAAACompComp
5BBBBBBBBBComp
6CCCCCCCCCCCompCompComp
7
8
9
10STATS SHEET
11
12AAAAAAAAStage_2
13BBBBBBBBBStage_1
14CCCCCCCCCCStage_3

<colgroup><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
B12=LOOKUP(2,1/(INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),)>0),B$3:E$3)

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

<tbody>
</tbody>
 
Upvote 0
like this?


Book1
ABCDE
1DATASHEET
2
3ItemNameStage_1Stage_2Stage_3Stage_4
4AAAAAAAACompReturned
5BBBBBBBBBComp
6CCCCCCCCCCCompCompComp
7
8
9
10STATS SHEET
11
12AAAAAAAAReturned
13BBBBBBBBBStage_1
14CCCCCCCCCCStage_3
Sheet3
Cell Formulas
RangeFormula
B12=IF(ISNUMBER(MATCH("Returned",INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),),0)),"Returned", LOOKUP(2,1/(INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),)>0),B$3:E$3))
 
Upvote 0
SUPERB!! I really appreciate this!!

like this?

ABCDE
1DATASHEET
2
3ItemNameStage_1Stage_2Stage_3Stage_4
4AAAAAAAACompReturned
5BBBBBBBBBComp
6CCCCCCCCCCCompCompComp
7
8
9
10STATS SHEET
11
12AAAAAAAAReturned
13BBBBBBBBBStage_1
14CCCCCCCCCCStage_3

<colgroup><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
B12=IF(ISNUMBER(MATCH("Returned",INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),),0)),"Returned",
LOOKUP(2,1/(INDEX($B$4:$E$6,MATCH(A12,$A$4:$A$6,0),)>0),B$3:E$3)
)

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

<tbody>
</tbody>
 
Upvote 0

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