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.


Company NameComputer NameConnection DatePrior Activity DateCompleted Date
Penguins1lab17/24/20177/24/20177/24/2017
Bears Inclab24/23/20174/23/20171/18/2017
Bears Inclab37/24/20177/24/20177/10/2017
Bears Inclab47/24/20177/24/20177/18/2017
Cheetah Expresslab57/24/20177/24/20177/23/2017
Cheetah Expresslab67/24/20177/24/20177/20/2017
Penguins1lab77/24/20177/24/2017Never Completed
Cheetah Expresslab87/24/20177/24/20172/24/2017
Penguins1lab97/24/20177/24/20177/25/2017
Cheetah Expresslab107/24/20177/24/20174/24/2017
Penguins1lab117/24/20177/24/20177/21/2017
Bears Inclab127/24/20177/24/20175/25/2017

<tbody>
</tbody>


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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

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