Cell with URL

The conditional formula: =IF(LEN(AD1)=8,"http://3w.deliveryservice1/",IF(LEN(AD1)=12, HYPERLINK( CONCATENATE(AS1,AD1,AT1)),IF(LEN(AD1)=14, HYPERLINK(CONCATENATE(AS1,"0",AD1,AT1)),"https://3w.deliveryservice2")))

The formula works fine. Looking to see if enhancements are possible.

If AD is blank is if possible to make the cell where the formula resides blank?

If AD has a tracking number is it possible to include in the same cell with the URL but NOT part of the URL/Hyperlink?

Thanks in advance
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
Quick question how will you know AD has a tracking number??
dgd1212Author Commented:
That cell is part of a report. If its populated it will be a tracking number from one of three delivery companies. The formula works but it appears even if AD is not populated.
Tj aCommented:
For the 1st part, try this

=IF(ISBLANK(AD) = TRUE, "", your formula)


=IF(ISBLANK(AD) = TRUE, "", IF(LEN(AD1)=8,"http://3w.deliveryservice1/",IF(LEN(AD1)=12, HYPERLINK( CONCATENATE(AS1,AD1,AT1)),IF(LEN(AD1)=14, HYPERLINK(CONCATENATE(AS1,"0",AD1,AT1)),"https://3w.deliveryservice2"))) )

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dgd1212Author Commented:
Perfect! solution works
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.