MS Excel Multi Sheet Formula

I have a workbook with two tabs

 main & RAPT

 I need a formula for a column in main that will look at column A and see if it has a -NG in it, if it find an -NG then it should use what it found plus 7 so an example would be -NG1595.  Then look in column B of Sheet RAPT and if that -NG#### is found anywhere in that column (could be part of a string) then bring column Q from RAPT across..
Matt PinkstonEnterprise ArchitectAsked:
Who is Participating?
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.

ShumsExcel & VBA ExpertCommented:
Hi Matt,

I am still not sure about plus 7, I am assuming you want see If Col A has -NG then plus 7 Col, which would be Col H, then you want to lookup combination of A & H in RAPT Sheet in Col B to extract Col Q.
If this is the case, then please try below formula.

Open in new window

Matt PinkstonEnterprise ArchitectAuthor Commented:
so an example of A2 in Main would be

PMNMCI-5000-2015-NG1595 Acronis

and an example of A2 in RAPT could be

So we would look for -NG1595 less the (-) in column A of Rapt and when there is a match I want column Q to be grabbed
ShumsExcel & VBA ExpertCommented:
Then try below:

Open in new window

Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

ShumsExcel & VBA ExpertCommented:
If NG**** position will be same after PMNMCI-5000-2015- then we can use below formula:

Open in new window

ShumsExcel & VBA ExpertCommented:
If position is not fixed but NG letters would be 6 digit then try below:

Open in new window

Matt PinkstonEnterprise ArchitectAuthor Commented:
HMMMM Results are very weird...

Formula returned a lot of blanks and a bunch of 1/0/1900

Details again...

Two Tabs

Tab1 - MAIN
Column A staring in Row 2 has names that look like this:
PMNMCI-5000-2015-NG1595 Acronis
PMNMCI-5000-2015-NG1424 HW and SW Certification and Accreditation
PMNMCI-5000-2014-NG0225-MOD12 Mobility Consolidation

So need to extract the NG#### and then look in tab RAPT column A which looks like this


If a match is found the value from column Q should be used...
ShumsExcel & VBA ExpertCommented:

Please find attached with below formula:

Open in new window

Matt PinkstonEnterprise ArchitectAuthor Commented:
Using your formula did not give me the results I was looking for..

MAIN Column(A) = PMNMCI-5000-2015-NG1595 Acronis

RAPT Column(A line 1696) = NG1593

RAPT Column(Q) = 9/30/2015 11:55

But what gets returned is BLANK

If I change the formula to

I get 1/0/1900
ShumsExcel & VBA ExpertCommented:
If something returns 1/0/1900 then you need to format cell as General
ShumsExcel & VBA ExpertCommented:
Matt, see your initial post you asked be  
Then look in column B of Sheet RAPT

What is the expected result, is it a number, currency or date?
ShumsExcel & VBA ExpertCommented:
If you are looking in Col A of RAPT sheet then your formula should be:

Open in new window

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
Matt PinkstonEnterprise ArchitectAuthor Commented:
ShumsExcel & VBA ExpertCommented:
You're Welcome Matt, Glad I was able to help.

Is this duplicate question?

If yes, then please request it for deletion, else accept the solution there as well.
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.