Solved

Multiple array formula

Posted on 2016-07-25
2
39 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:Jase Alexander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 51

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:Jase Alexander
ID: 41727666
Amazing !!

Thank you so much for your help
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

729 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