Combine ADRESS and VLOOKUP

ChicagoGuy

New Member
Joined
May 12, 2017
Messages
14
I have a set of people that are forecasting their expected work completion similar to what i have listed below. You will notice in coumns H and I have a start date and end date. I actually have a few hundred rows in real life and based on various business events their start and end date may change.

Is there a way to find the first and last value in a row and then use that to pull the date from A1:F1? Seems like some sort of combinationof address and maybe vlookup but Im a bit lost.

For example I would like to have H2 say 6/2/2017 and I2 say 6/6/2017. But i cant figure out how to connect the dots.

Hopefully I am making sense. Please just ask for clarfication if you need it.

ABCDEFGHI
1Dates6/1/20176/2/20176/3/20176/4/20176/5/20176/6/2017START DATEEND DATE
2MATHEW22849
3MARK4187
4LUKE537
5JOHN4689
6RNGO561923

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

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
H2:

Code:
=index($b$1:$g$1,,match(1,1/($b2:$g2<>""),0))

i2:

Code:
=index($b$1:$g$1,,match(1,1/($b2:$g2<>""),1))
 
Last edited:
Upvote 0
thank you cerfani.

I am getting an #value error though. I see where you are going. let me see if i can figure out whats throwing the error

Dates6/1/20176/2/20176/3/20176/4/20176/5/20176/6/2017START DATEEND DATE
MATHEW22849#VALUE!#VALUE!

<tbody>
</tbody><colgroup><col span="7"><col><col></colgroup>
 
Upvote 0
thank you cerfani.

I am getting an #value error though. I see where you are going. let me see if i can figure out whats throwing the error

Dates6/1/20176/2/20176/3/20176/4/20176/5/20176/6/2017START DATEEND DATE
MATHEW22849#VALUE!#VALUE!

<tbody>
</tbody>

Hello and welcome to the forum.

The formulas given in post #2 are array formulas and should be entered using Ctrl Shift Enter instead of just Enter.
 
Last edited:
Upvote 0
Maybe this?
A​
B​
C​
D​
E​
F​
G​
H​
I​
1​
Dates6/1/20176/2/20176/3/20176/4/20176/5/20176/6/2017START DATEEND DATE
2​
MATHEW
2​
2​
8​
4​
9​
6/1/20176/5/2017
3​
MARK
4​
1​
8​
7​
6/3/20176/6/2017
4​
LUKE
5​
3​
7​
6/2/20176/4/2017
5​
JOHN
4​
6​
8​
9​
6/1/20176/5/2017
6​
RNGO
5​
6​
1​
9​
2​
3​
6/1/20176/6/2017
H2=INDEX($B$1:$G$1,MATCH(TRUE,INDEX(($B2:$G2<>0),0),0))
I2=INDEX($B$1:$G$1,MATCH(0,B2:G2,-1))
both copied down as needed
 
Upvote 0
In H2 enter and copy down:

=INDEX($B$1:$G$1,MATCH(TRUE,INDEX(ISNUMBER(B2:G2),0),0))

In I2 enter and copy down:

=LOOKUP(9.99999999999999E+307,B2:G2,$B$1:$G$1)
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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