Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

LARGE INDEX formula

Posted on 2016-08-03
3
Medium Priority
?
125 Views
Last Modified: 2016-08-04
I have one shipment (Tracking #), that has many charges associated with it.
However, they are on two different reports.

I am looking for a large & index combined formula but need some help.
I have attached a workbook with two sheets and sample data.
The LIST sheet has the single instance, but there are many charges associated with that one sale.
The CHARGES sheet shows the charges associated with the sale.
The unique item is the Tracking. I need to pull columns B&C from Charge into the List - matching on the Tracking #.
I need to list them on the same row - Surcharge 1, surcharge 2, surcharge 3....
SAMPLE.xlsx
0
Comment
Question by:Euro5
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 2000 total points
ID: 41741723
Try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.

On List Tab,
In C2
=IFERROR(IF(MOD(COLUMNS($C2:C2),2)=1,INDEX(Charge!$B$2:$B$11,SMALL(IF(Charge!$A$2:$A$11=$A2,ROW(Charge!$A$2:$A$11)-ROW(Charge!$A$2)+1),COLUMNS($C2:C2)-COUNT($B2:B2)+1)),INDEX(Charge!$C$2:$C$11,SMALL(IF(Charge!$A$2:$A$11=$A2,ROW(Charge!$A$2:$A$11)-ROW(Charge!$A$2)+1),COLUMNS($C2:C2)-COUNTIF($B2:B2,"?*")-1))),"")

Open in new window

and then copy across and down until you get blank cells.
SAMPLE.xlsx
0
 

Author Closing Comment

by:Euro5
ID: 41742698
Awesome thank you!!
0
 
LVL 33

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41742706
You're welcome.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With its various features, Office 365 can not only help you with your day-to-day business tasks, it can also do wonders for your marketing campaign.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question