Solved

Multiple array formula

Posted on 2016-07-25
2
26 Views
Last Modified: 2016-07-25
HI Guys
Hope you can help as I’m having an issue with coming up with a multiple array formula for my predicament

In the attached spreadsheet, Sheet 1 has been set up so downloaded data can be pasted in and fill columns A to FA – the data can fill from 2 to 5000 rows depending the size of the invoice information for that particular week.

In Column AW (starting from cell AW2), when the data is pasted in to the sheet, there is a reference beginning with ULO. The report pasted into sheet 2 from our internal system dictates whether this ULO reference / order is a mail order or a trade order. If it is blank, then it is assigned a Returns label.

This works fine however, when there is NO data in the template, in column FB (starting at FB2), the formula currently says that if column AW has no data or blank, then return the result as Returns.

For development purposes, I need a formula in Column FB (starting in cell FB2) that says – and apologies as I have had to write this literally:-
If Cell A1=”” then FB2=”” (before data is pasted) however, if A1<>”” and AW2=”” (after data is pasted) then the result is “Returns” in addition to the Vlookup formula distinguishing the remaining references as mail order or trade (see formula in cell FB2).

Is this possible to write in a single formula?

If so, I would be very grateful – your assistance is appreciated as always

J
EE_Example.xls
0
Comment
Question by:spicecave
2 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 41727659
Hi,

pls try
=IF(A1<>"",IF(TRIM(AW2)="","RETURNS",VLOOKUP(AW2,Sheet2!$A$1:$C$65535,3,FALSE)),"")

Open in new window

Regards
0
 

Author Closing Comment

by:spicecave
ID: 41727666
Amazing !!

Thank you so much for your help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now