ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   v look up formula to generate a blank line (https://www.excelbanter.com/excel-discussion-misc-queries/232974-v-look-up-formula-generate-blank-line.html)

Tacklemom

v look up formula to generate a blank line
 
Hi there,

What i am trying to do is I am using V lookup formula to generate a mailing
address for invoices. But what I want is if the 2nd line of the address is
left blank on the data source that it is left blank on the address line of
our invoices.

As well I am using Vlook up to join 2 cells in one line ( eg city, state)
and I would like to know how to insert a , and blank space between the 2
cells.

Thank you


--
Donna

Gary''s Student

v look up formula to generate a blank line
 
Test for the blank:

Instead of:
=VLOOKUP(12,F1:G4,2)
use something like:
=IF(VLOOKUP(12,F1:G4,2)="","",VLOOKUP(12,F1:G4,2))

--
Gary''s Student - gsnu200856


"Tacklemom" wrote:

Hi there,

What i am trying to do is I am using V lookup formula to generate a mailing
address for invoices. But what I want is if the 2nd line of the address is
left blank on the data source that it is left blank on the address line of
our invoices.

As well I am using Vlook up to join 2 cells in one line ( eg city, state)
and I would like to know how to insert a , and blank space between the 2
cells.

Thank you


--
Donna



All times are GMT +1. The time now is 10:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com