INDEX MATCH (IF?)

plshelp22

New Member
Joined
Nov 9, 2022
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hi,

We are trying to build a basic dashboard that is automated having to only paste in a raw data sheet that is cleaned and then uses the data from the 'clean data' sheet.

At the minute we are trying to work out MODE of a text string within a range per week client activity is live. The formula that works for this is:

=INDEX('Clean Data'!D2:D20,MODE(MATCH('Clean Data'!D2:D20,'Clean Data'!D2:D20,0)))

However, there are two more variables we need to use to get the right value.

1. The 'clean data' sheet is an array from A1:H2000 for example. In column B there are names of clients that we need to match with the name of the client on the tab we are using in cell A2.

2. We only want to capture the mode of text within a certain week. We currently have the dates in 'clean data' sheet in the dd/mm/yyyy format in column G. The date the client beings activity is in the current sheet in cell D1. We then need to be able to drag this formula to the right to show increments of 7 days.
For example Week 1 matches if date in 'clean sheet' is equal to or greater than D1 by 7days. Week 2 would be greater than D1 by 7 to 14 days.


I have uploaded screenshots with some cells redacted but hopefully gives enough of a picture.
 

Attachments

  • Group 348.png
    Group 348.png
    153.8 KB · Views: 12
  • Group 347.png
    Group 347.png
    198.8 KB · Views: 12

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,954
Messages
6,122,462
Members
449,085
Latest member
ExcelError

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