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 :)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
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<>"")
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,986
Members
449,060
Latest member
mtsheetz

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