Dynamic named range for invoice data

hhhelp

New Member
Joined
Feb 20, 2021
Messages
1
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
HI,
Newbie to excel here.

I am trying to use code to take a named range on an invoice and add it to a database in a separate sheet.
The code I am using is below but need it to not pull any blank cells that contain functions in them.

Code I was previously told to use but has an error:
=OFFSET(Invoice!$M$19,,,MATCH(99999,Invoice!$M$19:$M$49,0),6)

1613826252920.png

Code that pulls data including blank cells with functions:
=Invoice!$M$19:$R$49

Any and all help will be greatly appreciated :)
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

StephenCrump

MrExcel MVP
Joined
Sep 18, 2013
Messages
4,116
Office Version
  1. 365
Platform
  1. Windows
Welcome to the Forum!

If R19:R49 contains data, and you want to return only non-blanks (where blank means either no formula/value or a formula returning ""), then in Excel 365 you simply need:

=FILTER(R19:R49,R19:R49<>"")
 

Watch MrExcel Video

Forum statistics

Threads
1,126,888
Messages
5,621,416
Members
415,839
Latest member
Pollydooner

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
Top