Index Multiple Columns to correspond to specific column

CharlieFuggle

New Member
Joined
Jan 11, 2022
Messages
2
Office Version
  1. 2019
Platform
  1. MacOS
Hi everyone,

New to this forum so hopefully this is ok, and I explain it right.

I'm trying to find a way to auto-generate invoice amounts by using the invoice number.

Index Match works perfectly on one column, however the way the spreadsheet works, some new invoice numbers are on the same row in the table, but on the next column in the table. (same customer job)

Invoices are for example in column L-Q, but the amounts i need to pull through are on D-H.

Is there a way to make L pull through in order from D-H (so if D was blank, it would pull through E etc.)?

Any help is massively appreciated,
Charlie
Excel 2019 / MacOS
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello CharlieFuggle,

I'm not sure if I follow (a worked example using XL2BB would be best) but maybe SUMIFS does that for you.

CharlieFuggle.xlsx
ABCDEFGHIJKLMNOP
1Invoice
277
3TotalAmountsAmountsAmountsAmountsAmountsInvoicesInvoicesInvoicesInvoicesInvoices
415123458888665588
5678910777788
611111555577
7111112233445566
8111113311996677
9
Sheet1
Cell Formulas
RangeFormula
A4A4=SUMIFS($D$4:$H$99,$L$4:$P$99,$A$2)
 
Upvote 0
Hi ToadStool,

Yeah thought it would be confusing to explain, here's an example.

I have customers who pay different amounts, some pay 25%, 50% and or 100%.

So for example, client 1 paid 25% (invoice relates to that is 1678) and then paid 100% (invoice relating to that is 3100).

Client 2 however paid 100% so only 1 invoice needed (1679).
Bene Test 1.xlsm
ABCDEFGHIJ
4ClientColumn325% Dep50% Dep100% PaidTotal PaidTotal OwedInvoice 1Invoice 2Column2
5client 1$5,000$20,000$20,000$016783100
6client 2$24,000$24,000$01679
7client 3$7,000$14,000$28,000$28,000$0168020102222
8client 4$16,000$32,000$32,000$016812011
9client 5$18,000$36,000$36,000$016822090
PF


Not sure there is a way to pull through that if i search invoice number 3100 on my invoice template, it will pull through the second payment?
 
Upvote 0
Maybe something like this

I used two helper columns (B and C) to make things easier

Pasta1
ABCDEFGHIJ
1InvoiceRowColumnResult
231001220000
31678115000
41680317000
516825118000
620114232000
716792124000
8
9ClientColumn325% Dep50% Dep100% PaidTotal PaidTotal OwedInvoice 1Invoice 2Column2
10client 150002000020000016783100
11client 2240002400001679
12client 370001400028000280000168020102222
13client 4160003200032000016812011
14client 5180003600036000016822090
Plan2
Cell Formulas
RangeFormula
B2:B7B2=AGGREGATE(15,6,(ROW($H$10:$J$14)-ROW($H$10)+1)/($H$10:$J$14=A2),1)
C2:C7C2=AGGREGATE(15,6,(COLUMN($H$10:$J$14)-COLUMN($H$10)+1)/($H$10:$J$14=A2),1)
D2:D7D2=INDEX(C$10:E$14,B2,MATCH(C2,INDEX(SUBTOTAL(2,OFFSET(INDEX($C$10:$C$14,B2),,,,COLUMN($C$10:$J$14)-COLUMN($C$10)+1)),),0))


Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,088
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