Find value in table matching first column

lionking001

New Member
Joined
Nov 8, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am sure this is a simple answer, but looking for help pulling the first date from simplified table below, regardless of what column it is in. "Tasks" are unique and will only have one date attached to it, but dates may change columns. I want to return the date in my query.

Data:
Week 1Week 2Week 3Week 4Week 5
Task 1
11/1/2021​
Task 2
11/8/2021​
Task 3
11/8/2021​
Task 4
11/22/2021​
Task 5
11/29/2021​

What is the formula I can use for column B here to get the dates in the table but account for unknown column number in source data. ?
TaskDeadline
Task 3
11/9/2021
Task 511/29/2021
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi and welcome to MrExcel.

Try this:

Dante Amor
ABCDEF
1Week 1Week 2Week 3Week 4Week 5
2Task 101/nov/2021
3Task 208/nov/2021
4Task 308/nov/2021
5Task 422/nov/2021
6Task 529/nov/2021
7
8TaskDeadline
9Task 308/nov/2021
10Task 529/nov/2021
Hoja2
Cell Formulas
RangeFormula
B9:B10B9=SUMPRODUCT(($A$2:$A$6=A9)*($B$2:$F$6))
 
Upvote 0
Hi and welcome to MrExcel.

Try this:

Dante Amor
ABCDEF
1Week 1Week 2Week 3Week 4Week 5
2Task 101/nov/2021
3Task 208/nov/2021
4Task 308/nov/2021
5Task 422/nov/2021
6Task 529/nov/2021
7
8TaskDeadline
9Task 308/nov/2021
10Task 529/nov/2021
Hoja2
Cell Formulas
RangeFormula
B9:B10B9=SUMPRODUCT(($A$2:$A$6=A9)*($B$2:$F$6))
Hmm, this is showing me a #VALUE error

Not sure if it makes a difference but the dates I am pulling from the table are built off formulas calculating the date.
Any way to vlookup column A and pull the date without defining the column #?
 
Upvote 0
Not sure if it makes a difference but the dates I am pulling from the table are built off formulas calculating the date.

I don't understand how you get the dates. If the result of the formula is a date or a "", then try this array formula.

Dante Amor
ABCDEF
1Week 1Week 2Week 3Week 4Week 5
2Task 101/nov/2021
3Task 208/nov/2021
4Task 308/nov/2021
5Task 422/nov/2021
6Task 529/nov/2021
7
8TaskDeadline
9Task 308/nov/2021
10Task 529/nov/2021
Hoja2
Cell Formulas
RangeFormula
B9:B10B9=MAX(($A$2:$A$6=A9)*(IF(ISNUMBER($B$2:$F$6),$B$2:$F$6)))
Press CTRL+SHIFT+ENTER to enter array formulas.


Any way to vlookup column A and pull the date without defining the column #?
I do not understand what you mean. Your example is not very clear.
You could give an example of what you have and the result you want.
Use the XL2BB tool minisheet (see my signature).
 
Upvote 0
Thank you, that worked!
Sorry that was so unclear, i realize theres probably many ways to get the right answer, so I wasnt sure how to pose the question. But thank you!
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,543
Members
449,316
Latest member
sravya

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