Need to find specific dates and then return text result based on which column it was in

Moxie425

New Member
Joined
May 16, 2018
Messages
3
I am not sure which formula to use for this scenario. I've tried several and all seem to have some limitation. Here are the columns headers I have and the type of data
Target Start Date A= 9/3/2018
Open Date B= 7/2/2018
Source Date C=7/16/2018
Interview D= 7/30/2018
Offer Date E=8/13/2018

Columns B-E are all driven by formulas off of A. Obviously these are all in date format. I'm creating additional columns based on weeks of the year so F column header will 7/2/2018, G header will be 7/16/2018

I need to create a formula that will look for a specific date in a specific row across all 5 columns and then return defined text depending on which column it is in.

So in plain English I want the formula to read: Look for 7/2/2018 in A2, B2, C2, D2 and E2. If you find it in A2 return "Target Start", If you find it in B2 return "Open", If you find it in C2 return "Source " etc. If you don't find it return "n/a".

Not exactly what I need for text but you get the idea. Help!




<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody></tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi,

Not sure if this is what you mean:


Book1
ABCDEFGH
1Target StartOpenSourceInterviewOffer7/2/20187/16/20187/17/2018
29/3/20187/2/20187/16/20187/30/20188/13/2018OpenSource#N/A
Sheet51
Cell Formulas
RangeFormula
F2=INDEX($A1:$E1,MATCH(F1,$A2:$E2,0))


F2 formula copied across.
 
Upvote 0
Thanks. I simplified what I had in my spreadsheet to focus on just this problem. When I make a simple spreadsheet with just the columns I outlined it works. But when I put it in and modify to reflect the actual cells etc in my spreadsheet is returns N/A. Not sure why. Does it matter that the dates in the cell are generated by other formulas?
 
Upvote 0
Does it matter that the dates in the cell are generated by other formulas?

Yes, very possibly, the results of the Dates from your formulas need to be Real Date values in order to do additional Date/Math comparisons.

If you can show the formula you're using to generate these dates, may be we can figure it out.
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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