Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multiple array formula

Posted on 2016-07-25
2
Medium Priority
?
46 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 53

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

636 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