Combine complex arrays

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I am combining data in several columns into one single column using this formula:
=OFFSET($F$2:$F$509,MOD(ROW()-ROW(ColumnData1),ROWS($F$2:$F$509)),TRUNC((ROW()-ROW(ColumnData1))/ROWS($F$2:$F$509),0),1,1)


Then I'm using this formula to ignore blank and zero cells, round the number and only look at cells that match a criteria:
{=IFERROR(INDEX(ROUND($R$2:$R$1527,2),SMALL(IF(ISNUMBER(1/$R$2:$R$1527),ROW($R$2:$R$1527)-ROW($F$2)+1),ROWS($S$2:S2))),"")}

I’m using named ranges:AccRange = columns I,J & K; ColumnData = column R, where I’m placing all my combined data; Period = col F.

Is there a way I can combine these formulas into one less complex formula? Or can I make my AccRange into into one single column using an array formula?

What can I add to my second formula to change negative numbers into positive ones (reverse the sign, but only for negative ones)?

Below is a sample of my data col A-K


Client CodeClient NameLocBSYrPeriodFee %Invoice ValueMgt FeePaymentsAdjmts
CBAN700BANES RECRUITMENT400014201811. % 2,405.00 24.05
CBBC703BOURNEMOUTH BC PNs500031201811. % 10,012.75 100.13
CBCC001Birmingham City Council REC300014201811. % 47,384.92 473.85
CBCC001Birmingham City Council REC300014201812. % 46,455.80 929.12
CBCC002Birmingham City Council PNs500031201811. % 20,004.24 200.04-2678.75
CBCC002Birmingham City Council PNs300014201822. % 19,612.00 392.24-435.21
CBPN700BANES PUBLIC NOTICES500031201821. % 14,054.01 140.54-2172.28
CBUC006Buckinghamshire County Council300014201821. % 2,816.25 28.16-1554.69
CCCC604Coventry City Council REC300014201821. % 8,541.70 85.42-494.86
CCCC700CAMBRIDGE CITY COUNCIL PN500031201831. % 4,309.07 43.09-1239.12
CCCC701Cambridgeshire County Council500031201831. % 25,504.40 255.04-1481.00
CCCC704COVENTRY CITY COUNCIL PN500031201831. % 15,873.28 158.73-138.34
CCCC706COVENTRY CITY COUNCIL - Schools400014201831. % 919.81 9.20-639.31
CCDC700CRAVEN DISTRICT COUNCIL500031201831. % 3,232.64 32.33-8.92
CCEC700CHESHIRE EAST COUNCIL (PN)500031201831. % 11,620.54 116.21-99.55
CCSR001Government Recruitment Sevice316007201831. % 257,895.48 2578.95-113.56
CCSR002Government Recruitment service208007201831. % 4,230.79 42.31-195.80
CDCC700Derby City Council300014201831. % 4,944.04 49.44-1322.77
CDDC001Daventry District Council PNS500031201831. % 6,992.12 69.92-385.31
CDDC700DAVENTRY DISTRICT COUNCIL REC400014201831. % 16,122.00 161.22-92.45
CDPS003Parliamentary Digital Service107021201831. % 3,500.00 35.00-177.45
CESS900Essex C C (Public Notice/Tenders)500031201831. % 45,663.05 456.63-235.94
CHBB700HINCKLEY & BOSWORTH BC400014201831. % 5,550.55 55.51-796.31
CHIG006Highways England104007201831. % 10,376.22 103.76-0.19
CHSC700Herts for Learning Ltd400009201841. % 559.65 5.60-0.11
CHST002High Speed Two (HS2) Ltd320007201841. % 819.05 8.19-15678.54
CKCC702Kent County Council307014201841. % 12,700.05 127.00-99.01
CLBO700LB Barnet Corp & Schools308014201841. % 4,871.42 48.71-159.92
CLCC702LEICESTERSHIRE COUNTY COUNCIL (REC)400014201841. % 1,855.00 18.55-140.00
CLGA700LOCAL GOVERNMENT ASSOCIATION300014201841. % 1,681.00 16.81-2985.19
CMOJ001Ministry of Justice100007201841. % 9,920.00 99.20-19.47
CNCC705NORTHUMBERLAND COUNTY COUNCIL REC400014201841. % 3,214.86 32.15-659.9827.75
CNTC700NORTH TYNESIDE COUNCIL PNS500031201841. % 7,271.64 72.72-238.1733.55
CPCC700PETERBOROUGH CITY COUNCIL400014201841. % 5,706.10 57.06-59.95142.95
CRCB700REDCAR & CLEVELAND PNs500031201851. % 3,318.90 33.19-37.44212.39
CRED600Redcar & Cleveland BC REC400014201851. % 7,267.50 72.68-2282.9746.35
CSBC700Slough Borough Council400014201851. % 23,556.62 235.57-395.70361.77
CSGC600South Gloucestershire Council REC400014201851. % 4,171.34 41.71-1.86489.26
CSGC700South Gloucestershire Council PN500031201851. % 12,847.58 128.48-1080.06101.34
CSMB700SANDWELL MBC - PNs500031201851. % 2,629.45 26.29-544.431.57
CSOL700Solihull MBC Schools300014201851. % 985.62 9.86-206.69512.83
CSOL701Solihull MBC Rec300014201851. % 6,521.08 65.21-361.43236.35
CSOL702Solihull MBC PN500031201851. % 3,066.61 30.67-1.19
CSOM005Somerset County Council300044201851. % 1,200.00 12.00-11.02
CSOT010Stoke on Trent City Council400014201851. % 4,265.23 42.65
CSOT010Stoke on Trent City Council500031201851. % 4,223.00 42.23
CTLR002The Land Registry110007201851. % - 0.00-398.35
CSTS700Stoke on Trent City Council400014201861. % 10,666.00 106.66 -218.12
CTOH002London Borough of Tower Hamlets500031201861. % 9,506.00 95.06
CWCC004Warwickshire County Council - Rec300014201861. % 12,948.00 129.48
CWCC007Warwickshire CC PNs500031201861. % 20,913.28 209.13
CWCC010Warwickshire CC SCHOOLS400014201861. % 8,355.00 83.55
CWMP700West Midlands Police112044201861. % 1,117.70 11.18
CWOR009Worcestershire CC PN500031201861. % 22,434.91 224.35
CWOR009Worcestershire CC PN400014201861. % 22,212.80 222.13
CWOR700Worcestershire CC Rec400014201861. % 485.00 4.85

<colgroup><col width="87" span="11" style="width: 65pt;"></colgroup><tbody>
</tbody>
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I only know part of the answer. If you wish to convert the negative numbers to postive numbers, there are several ways. One involves function IF, but that can mean large array forumlas. A simple way to remove the negation is to square the number and use function SQRT. E.g., If A1 contains the topic number of -72.5, then =SQRT(A1^2) will convert it to 72.5 but will not alter positive numbers.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,691
Members
449,117
Latest member
Aaagu

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