How to make this formula range expandable??

mrxlsx

Board Regular
Joined
Dec 15, 2012
Messages
95
Hi all,

I have a formula range like this " =IFERROR(SMALL($H$2:$H$16,G3),"") ".

It works only for H2:H16 at present, but I want it to be a dynamic one as the no of rows grow.

Basically I am trying to extract Invoice records from a self-expanding data range.

If I select an Invoice no in M2, I will get records for that Invoice no. But it has a limitation regarding its range, how to overcome this??

All the problem is in the Column I i.e. in the SMALL function's place.

Please check the below link for more information.

https://drive.google.com/open?id=0B6GD5M1_zN7bTUFaSWlubGtCcjQ&authuser=0

Please ask me for any clarifications.

Thank you
mrxlsx
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
If you convert your data range to a Table and redo the formulas they'll have dynamic references (i.e. structured references).
 
Upvote 0
Hi Smitty,

I tried all the following options but for some reason I am getting only a few outputs i.e. I could not get all of the invoice records when I select the choice from the Drop-down.

1. Naming the column
2. Converting the data range into a Table

The idea is too good to use but it should be changed a bit to make that work perfectly.
All the problem lies with the data range in the formula, Any help is greatly appreciated. Thank you all.

mrxlsx
 
Upvote 0
Do you meant that AutoFilter isn't displaying all of the records you expect?

Can you post a screen shot?
 
Upvote 0
Hi Smitty,

thanks for the kind reply.

The whole process is for the sake of printing the selected invoices' details for billing purpose(literally for printing the bill in the counter). The moment I select the Invoice no, I will get all records pertaining to the Invoice and print them all as a bill.

In the original sales data I have 22 columns. But I don't need 22 cols to be printed. I just need what I have shown you in the Sample excel sheet, hardly 4 cols i.e. Products, Qty, Rate, Amount. But if you go for Auto filter, here are some problems I expect.

1. Every time the Sales counter personnel has to do the process of filtering,
2. You will get other unnecessary filtered columns,
3. Sometimes as the transactions grow in thousands Auto-filter will become late.

Did you see the sample work book and try to print the new records added? Try that you will understand the problem. The formula will not pick the new records.

I am 100% sure that if someone can make the formula range expandable, the formula works smoothly. Even making the sales data as table also could not address the problem as it is not picking up the new record entered.

I have seen some time back Mike Girvin has used this technique some where and I have been on web search for the last 3 days. He used Index or offset function I guess to expand the range. But I get lot of tricks on this, can't choose exactly what I need from 'em. I am trying all.

Please help me.
mrxlsx.
 
Upvote 0
I'd use a Pivot Table(s). If you add Slicers you can quickly toggle between various views and it's a lot faster than changing Filter criteria.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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