Help with Array Formula

dlrollings83

New Member
Joined
Jul 7, 2016
Messages
18
I have a table with a large amount of data and need help with some formula
Data:
014050Street 1N15 4HUHaringeyCurrentTELM15/05/2018Charlene
014050Street 1N15 4HUHaringeyCurrentTELX09/05/2018Tan
014050Street 1N15 4HUHaringeyCurrentTXTS09/05/2018Tan
014059Street 2N15 4HUHaringeyCurrentTELX11/05/2018Charlene
014059Street 2N15 4HUHaringeyCurrentTXTS11/05/2018Charlene
014589Street 3N15 4HZHaringeyCurrentCTHB01/05/2018Dominic

<tbody>
</tbody>

Column A is Ref Number, B is Address, F is the work type, G is the date and H is the user (there are almost 20K rows of data)

I have entered an array formula that counts the new data in row A is it matchs row H as follows:
{=SUM(--(FREQUENCY(IF('Sheet 1'!H:H=A4,MATCH('Sheet 1'!A:A,'Sheet 1'!A:A,0)),ROW('Sheet 1'!A:A)-ROW('Sheet 1'!A3)+1)>0))}

This works fine for the total individual accounts that a person has looked at, but this data is going back a fair few months and there are 2 things I could use assistance with.

1. Anyway to get the same results (the above would return values of 2 for Charlene, 1 for Dominic and 1 for Tan) without using an array formula, my PC is slow enough without excel dragging its heels.

2. Anyway (with an array if required, but preferably not) for the above to look up the officer and count unique cells in column A when column G is within a set date range. Basically what I need is =if(and(G:G='Date Range',H:H="Officer Name')'count unique data'A:A)

Happy to consider a macro is that is easier.

I am going to start looking at Power Bi in the hope that that makes this analysis easier but I have only just started that journey so have no idea what I am doing on that yet.

Many Thanks in advance.
 
Last edited:

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hello, I'm not sure I exactly follow, can you post how the above should look / the results you want.

But from what you said, I am thinking a simple Pivot Table may do it.
 
Upvote 0

Book1
ABCDEFGH
214050Street 1N15 4HUHaringeyCurrentTELM2018-05-15Charlene
314050Street 1N15 4HUHaringeyCurrentTELX2018-05-09Tan
414050Street 1N15 4HUHaringeyCurrentTXTS2018-05-09Tan
514059Street 2N15 4HUHaringeyCurrentTELX2018-05-11Charlene
614059Street 2N15 4HUHaringeyCurrentTXTS2018-05-11Charlene
714589Street 3N15 4HZHaringeyCurrentCTHB2018-05-01Dominic
Sheet 1



Book1
AB
12018-05-01
22018-05-31
3name# distinct
4Charlene2
5Tan1
6Dominic1
7
Sheet2


Avoid referencing whole columns for reasons of efficiency.

In B2 control+shift+enter, not just enter, and copy down:

=SUM(IF(FREQUENCY(IF(('Sheet 1'!$A$2:$A$7<>"")*('Sheet 1'!$H$2:$H$7=$A4)*('Sheet 1'!$G$2:$G$7>=$A$1)*('Sheet 1'!$G$2:$G$7<=$A$2),MATCH('Sheet 1'!$A$2:$A$7,'Sheet 1'!$A$2:$A$7,0)),ROW('Sheet 1'!$A$2:$A$7)-ROW(INDEX('Sheet 1'!$A$2:$A$7,1,1))+1),1))
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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