Excel Formula to Search A Column for String, then if String Matches, Look in another column at the corresponding row with a date to compare to the cur

blakeforums

New Member
Joined
Jul 25, 2017
Messages
1
I apologize for the long title. Here is what I am try to do.


[TABLE="width: 800"]
<tbody>[TR]
[TD]Company Name[/TD]
[TD]Computer Name[/TD]
[TD]Connection Date[/TD]
[TD]Prior Activity Date[/TD]
[TD]Completed Date[/TD]
[/TR]
[TR]
[TD]Penguins1[/TD]
[TD]lab1[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[/TR]
[TR]
[TD]Bears Inc[/TD]
[TD]lab2[/TD]
[TD]4/23/2017[/TD]
[TD]4/23/2017[/TD]
[TD]1/18/2017[/TD]
[/TR]
[TR]
[TD]Bears Inc[/TD]
[TD]lab3[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/10/2017[/TD]
[/TR]
[TR]
[TD]Bears Inc[/TD]
[TD]lab4[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/18/2017[/TD]
[/TR]
[TR]
[TD]Cheetah Express[/TD]
[TD]lab5[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/23/2017[/TD]
[/TR]
[TR]
[TD]Cheetah Express[/TD]
[TD]lab6[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/20/2017[/TD]
[/TR]
[TR]
[TD]Penguins1[/TD]
[TD]lab7[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]Never Completed[/TD]
[/TR]
[TR]
[TD]Cheetah Express[/TD]
[TD]lab8[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]2/24/2017[/TD]
[/TR]
[TR]
[TD]Penguins1[/TD]
[TD]lab9[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/25/2017[/TD]
[/TR]
[TR]
[TD]Cheetah Express[/TD]
[TD]lab10[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]4/24/2017[/TD]
[/TR]
[TR]
[TD]Penguins1[/TD]
[TD]lab11[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]7/21/2017[/TD]
[/TR]
[TR]
[TD]Bears Inc[/TD]
[TD]lab12[/TD]
[TD]7/24/2017[/TD]
[TD]7/24/2017[/TD]
[TD]5/25/2017[/TD]
[/TR]
</tbody>[/TABLE]


Essential, I am searching under the company name for a desired company, then I want it to count how many times that company occurs, look at the completed date for the corresponding company if it matches, and then compare the date to Today's date if it is within 5 days, to calculate a percent.

I have a formula that does this for the entire table, but need to break it down by company.

Formula I have for the entire sheet: COUNTIF(INDEX($E:$E,0,MATCH("Completed Date",$E:$E,0)),">="&TODAY()-"5")

Appreciate whatever help I can get.
 

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"

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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