Solved

Multiple array formula

Posted on 2016-07-25
2
33 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 50

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

861 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