Lookup Formula For Postcodes (look Up "SA1 6HU" And Return SA1)?

Jun 29, 2009

I have a list of records each with a postcode that takes either of the two formats:

SA1 6HU
N4 3HF

I also have a list of postcodes that show only the first part of postcodes

SA1
SA2
N3
N4

What formula would look up "SA1 6HU" and return SA1? while being also able to look up "N4 3HF" and return N4?

View 2 Replies


ADVERTISEMENT

Inconsistent Text Lookup - Return Postcodes From A List Of Descriptions

May 21, 2013

I'm trying to write a formula which will return postcodes from a list of descriptions which aren't consistent in their layout.

For example, I need this to happen

UB3 3NQ - APR13
SW3 5RQ - APR13
Jul 12 - apr13 accrual - ME9 4FW
Mar 12 - apr13 accural - SO14 7P2

Returned to another column as,

UB3 3NQ
SW3 5RQ
ME9 4FW
SO14 7P2

The issue I'm having is that the postcodes aren't in the same place in order to use LEFT, RIGHT or MID functions, and they aren't always proceeded or followed by dashes or spaces in the same way.

I need the returned postcodes to come back in a uniform way so that any duplicates are grouped by the relevant pivot table.

View 4 Replies View Related

Excel 2003 :: Array Formula - Counting Postcodes?

Dec 21, 2011

I have these postcodes as example below but the array formula I was going to use won't work because, for example when I count everything with the Birmingham post code 'B' it counts every thing that contains the letter B which could also be in the post code BA1 3RL?

Excel 2003FGHIJKL2AB11 7TFWEB3ECRAB143AB12 3NFWEB3ECRAL54AB14 0QNWEB396FECRB1295AB15 4ANWEB34ECRBA86AB15 5LRWEB34ECRBB4Sheet1 (2)

View 5 Replies View Related

How To Lookup A Value And Return A Formula

Apr 6, 2009

I have rows with text and numbers. In order to ensure that the numbers are accurate, I have a "QC formula" that calculates a check using all of the numbers from 1 row. The challenge is that the "QC formula" needs to vary depending on a text value within the row.

How can I lookup up the text value and then return the correct active formula for that row? I have too many differet text values to do a nested If statement. see simplified example below.

Condition ABCFormula' Needed based on Condition
Red123A*B*C
Blue123A+B+C
Green123(A+B)*C

View 13 Replies View Related

Lookup Formula Return The Highest Value

Jan 26, 2009

I have a spreadsheet that is comprised of 3 columns:

Column A - a list of values
Column B - the rank of the value in the adjacent cell in column A out of all values in column A
Column C - the quartile rank (1, 2, 3 or 4) of the value in the adjacent cell in column A

I would like to create a formula that would return the highest value in column A that is ranked in the 2nd quartile.

View 3 Replies View Related

Lookup Formula: Find And Return Value

Sep 30, 2009

I have a column with 11 different numbering schemes that go from 736466.01 through 736466.11 In the group from 736466.01 through 736466.07 I need to have the adjacent column look to those cells and if it finds 736466.01-.07 return "CM" if it is 736466.08-.11 I need it to return "TC". I created the formula below but it doesn't like something I have done unless I change the format of the 736466.xx to text. Anything other than 736466.01-.11 should return a "null" or "void" Can you help me improve this formula, or show me a better way of creating it?

=LOOKUP(E2,{"736466.01","736466.02","736466.03","736466.04","736466.05","736466.06","736466.07","736 466.08","736466.09","736466.10","736466.11"},{"CM","CM","CM","CM","CM","CM","CM","TC","TC","TC","TC" })

View 4 Replies View Related

Formula To Lookup Two Values In A Row And Return Value If Both Are Found

Apr 1, 2014

I am trying to use a formula similar to VLOOKUP() to look in a table for two values and if both values are found, return another value.

Sheet2 is an example of my output file, sheet one is a generated file. i would like the vlookup formula in sheet 2 cell D2 and down to be something like this,

=VLOOKUP(A2,Sheet1!A:K,10)

But I would like to lookup A2 and B2, and the row that contains both values, return the value in the J column

View 3 Replies View Related

Lookup Formula To Return Multiple Results?

Dec 8, 2013

I am trying to create a workbook where I can log what work I have done in one spreadsheet and allocate an invoice number to it. In a separate spreadsheet within the same workbook I have created an invoice template. When I enter in the invoice number into the invoice template it's not collecting the correct information.

For example, if I want the details for invoice 10 to show in the invoice template, details for invoice 19 appear.

I have used this formula:
=IFERROR(INDEX(ServiceRecord[[Invoice number]:[Date invoice issued]],
SMALL(IF(ServiceRecord[[Invoice number]:[Date invoice issued]]
='Invoice TEMPLATE'!$F$8,ROW(ServiceRecord[Invoice number])),ROW(1:1)),2),"")

I am wanting to add new information as time goes on and also to be able to put in any invoice number into the invoice template to recall information as needed.

View 3 Replies View Related

Text Formula? Postcodes: Seperate The First Or First Two Text Characters From The Rest Of The Postcode

Feb 16, 2007

I am working on sales information which includes postcodes. What i need to do is seperate the first or first two text characters from the rest of the postcode. I have attached a small snipet of what i am working on. Currently i am using the =Left(A4,2) but this will give me in some case a numerical value aswell. For example E1 or G1 in the case of the sample attached. Is there a formula that exists where it will just return the text values in a cell and not numerical values.

View 6 Replies View Related

Getting Postcodes From Website Using VBA

May 19, 2014

I am desperately trying to get full postcode lists from two websites: [URL] .... and [URL] ........

The latter of the two is harder to get (I'm told) so it could also be available at: [URL] .... by selecting only the "Collect+" stores.

View 2 Replies View Related

Highlighting Same Postcodes In A Spreadsheet

Feb 26, 2009

I run a delivery business & work comes in bit by bit by postcode. I thus enter the postcodes into my spreadsheet.

Then when it comes time to process the work I'm wanting to be able to do something that will highlight all postcodes that match the same colour.

I posted this query on another forum & a helpful guy gave me the code below which worked a charm, but only for a while. Since then I have slightly tweaked the spreadsheet, taken a couple of fields off & added a couple. The code now hardly works or if it does will only do one column or row & not the complete spreadsheet.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim oDn As Integer, oAc As Integer, Dn As Range, oPC, nDn As Integer, nAc As Integer, Ac, c, p
Dim Rw1 As Range, Rw2 As Range, Rw3 As Range, Rw As Integer
If Target.Address(0, 0) = "A1" Then
Set Rw1 = Range(Range("E2"), Range("e" & Rows.Count).End(xlUp))
Set Rw2 = Range(Range("G2"), Range("G" & Rows.Count).End(xlUp))
Set Rw3 = Range(Range("I2"), Range("I" & Rows.Count).End(xlUp))
Rw = WorksheetFunction.Max(Rw1.Count, Rw2.Count, Rw3.Count)
oPC = Range("E2:I" & Rw + 1)

c = 2

For oAc = 1 To UBound(oPC, 2)
For oDn = 1 To UBound(oPC, 1)
If Not oAc Mod 2 = 0 Then
If c = 25 Then c = 2
c = c + 1

View 14 Replies View Related

Delete Gaps In Cells (postcodes)

Jul 20, 2009

I have a load of postcodes over 8 different tabs, the problem is the format of the postcode is wrong. I basically need to delete the first gap of each cell to make the postcode valid -

DL 7 9
DL 8 1
DL 8 2
DL 8 4
DL 8 5
DL 9 3
DL 9 4
DL 10 4
DL 10 5
DL 10 6
DL 10 7
DL 11 7

You see I need to have it like DL7 9, or DL10 7, but i'm not sure how, I've attached the file so you can have a look.

View 5 Replies View Related

Have Postcodes Flag Up When Entered Or Start Clicked

Dec 16, 2009

I have a spreadsheet with many many worksheets & on each of those worksheets many many postcodes.

I am looking for a way where I can have a list of postcode stored once somewhere (in excel, word or whatever) & then when we type postcodes into the Excel spreadsheet & click whatever to start the macro or run the code it will refer to where I have the postcodes saved & then highlight any that match on the worksheet page.

View 14 Replies View Related

Grouping Postcodes In A Way That Minimizes Sum Geographical Distance Between Them

Feb 13, 2014

I have a list of postcodes. Half of them belong to girls, and half of them belong to guys. I have the distances between each postcode in a matrix. I need to put these postcodes into groups of 6, where 3 of the postcodes belong to girls and 3 to guys, in a way that minimises the sum distance between all the houses in every group. I want each group to contain houses that are as close together as possible.

View 7 Replies View Related

Filter The Column Of Postcodes Into The Postcode Defined Regions?

Jun 27, 2013

I have a list of post codes two letter starts by region. e.g.

inner london:

EC
WC
SW
W
NW
E
SE

In addition I have several very long lists of postcodes which I can obviously pull out the first two letters from using the Left function.

However I am wondering what is the best way to filter the column of postcodes into the postcode defined regions such as inner london nicely.

View 9 Replies View Related

V Lookup And Return Value

Oct 8, 2008

I have this vlookup formula and as you can see when I run it works good. The only problem is that I would like to have formula that it something is not found I don't get #N/A , but rather a 0 or blank.

=VLOOKUP(A6,GL!A$1:E$76,5,FALSE)

LOOKUPDIVDPTCC SALES 46120
010775010775 49,028,244.58
010200010200 3,373,145.76
010700010700 113,667.00
010300010300 14,382.54
011000011000 (1,518,076.05)
010600010600 589.98
011900011900 6,280.31
010900010900#N/A
011100011100 313.08
010750010750 570.90

View 5 Replies View Related

IF Or LOOKUP To Return Different Value..

Jun 15, 2009

Column A lists types of employees (managers, engineers, sales reps, etc.), each of which earns a seperate hourly rate. Column C lists hours worked, and Column D lists the total pay (Cx*Bx).

So column B is missing. Is there a way to generate the hourly rates in column B for each employee type in collumn A, i.e. if it's an Engineer, return $29, if it's a Technician, return $18, without an infinite set of True/Fasle conditions.

View 5 Replies View Related

Return A Value If The Lookup Contains...

Sep 11, 2009

I have two files with the below data:

File A
Bob Jones
Williams, K.

File B
Jones, Bob
Williams, Ken

The only commonality between the two files is the last name. I can easily separate the last name off File B, since it is always 'last name, first name'. I want a lookup formula to use the last name from File B (after I separate it), lookup to File A, and if it finds a cell in a specified column that contains the same last name, return data from another column within File A.

View 3 Replies View Related

Lookup And Return Value

Oct 13, 2008

I am trying to look up a value using VBA on 1 sheet and return it to a cell on another sheet.... I was hoping Evaluate sum product would work but I can't get it to. Basically I want to look up values in column C and D to locate the row then return value in column I specify.. below eg where Column C = SYD and column D = SHA, row = 6 .... value in L row 6 = 1

View 2 Replies View Related

Lookup To Return No Value

Sep 20, 2006

My Lookup formula gives back N/A rather than an empty cell. I was unable to find the solution in frequently asked questions. Everything points to using VLookup which I feel doesn't fit my situation as I am only looking at one row of text.

The length of my targeted range changes so I am wanting to use the lookup for an extra amount of rows to ensure I capture all the data at any given time. Once my lookup gets to the end of the list and finds a blank cell i get back N/A. I tried to include "" in my formula to combat this but it isn't working. I have been using IF statements elsewhere on my sheet but there are 30 arguments and I was forced to find an alternative.

This is an abridge version of my formula:

=LOOKUP(Data!A2,{"","0129","0133","0163","0167","0187","0197","0202","0212"},{"","0201-0129","0205-0133","0201-0163","0213-0167","0201-0187","0216-0197","0212-0202","0217-0212"})

Didn't know if I was supposed to use [code] for that. Figured better safe than deleted

View 9 Replies View Related

Lookup X & Y And Return Z

Jun 17, 2008

I am trying to set-up a formula that will look up two different values of a grid (x & y) and the result will be the intersection of the two values (z). If there is not a value at the intersecting cell i will have it display "n/a". I have attached an example of what i am trying to do but i have no idea how to set up the formula. I forgot to mention that the index or chart above remains constant but the lookups do change. I believe i may have figured it out. Here is what i came up with for cell C19. Should i have done anything different? =INDEX($A$2:$E$8,MATCH(A19,$A$2:$A$8,0),MATCH(B19,$A$2:$E$2,0))

View 8 Replies View Related

Lookup Value And Return Info About The Value

Dec 18, 2013

How to return the value of what i looking up. for example i want to find the value of A1 from a range of B1:B10 if A1 is B1 then it return the value beside B1 for example the value of B1 is C1

View 2 Replies View Related

Lookup 2 Values To Return 1 Value

Nov 19, 2008

Hi there, please can you help me transfer data from 1 spreadsheet to another (I have attached a file which has 2 sheets).

I am trying to populate columns G to L (sheet B) with data from column H (sheet A) - the lookup is between 'Material' & '7410','7090','7680','7060','8630','7580' on sheet B & material & plant on sheet A.

I have tried H&VLOOKUP & INDEX/MATCH but I keep returning a #N/A..

View 10 Replies View Related

Lookup Value In Header Row And Return

Oct 1, 2009

I have a worksheet with the following values:

header row 15 17 19 25 etc.
each column underneath the row will have a value of 0 or -1

A B C D E etc
1 15 17 19 25
2 0 -1 -1 0
3 -1 0 0 0
4 0 0 0 0
etc

I want a formula that I would put in each row that would return the value of Row 1 if there is a -1 below that value. So, in this example:

Row 2 formula would return 17,19
Row 3 formula would return 15
Row 4 formula would return nothing

View 9 Replies View Related

Lookup And Return Value Associated With Text

Aug 7, 2013

I am trying to automate the account classification of credit card (cc) expenses. The problem is charges to USAirways will always have random numbers after the vendor name on the cc download. I set USAIRWAYS as a Travel Expense and a simple Vlookup will not work.

For example, let's say a data dump in column C of the CC:
cell C2 is USAIRWAYS 037232A49429
CeLL C3:
USAIRWAYS 037282hf39647
Cell C4:
Facebook A8476H4

In column E I have my simple vendor name. Column F as the Vendor Account. For example E1 is USAIRWAYS. F1 is Travel Expense. E2 is FaceBook. F2 is Marketing Expense

In cell D2 & D3 I want to return Travel Expense anytime the formula sees USAirways in cell C2 returning the answer in column F after matching w/ column E. In cell D4 I want to return Marketing Expense.

View 3 Replies View Related

Lookup Value Within Range And Return Another Value

Jan 4, 2014

I have a list of names in sheet1 column A and 3 more list of names on sheet2, sheet3 and sheet3. What I'm trying to do is find a match for each name on sheet1 column A on the other sheets and depending on which sheet it was found, I need a specific value returned to sheet1 column B.

For example, if A1 was found on sheet2, then on B1 I would need to return the value "Morning" but if it was found on sheet3, then I need the value "Afternoon" and if found on sheet3 I need the value "evening" returned to B1 and then the same for every other name on the list found on sheet1 column A.

What I tried was this.

This goes in Sheet1 B1 (then I would drag it down to search for the rest)

=IF(AND(MATCH(A1,'sheet2'!$E:$E,0)),"Morning",IF(AND(MATCH(A1,'sheet3'!$E:$E,0)),
"Afternoon", IF(AND(MATCH(A1,'sheet4'!$E:$E,0)),"Evening","Un-assigned"))

Now the problem with this is that it only works if there is a match on sheet2 but if there is no match, it just returns "N/A" and it does not move on to sheet3 and/or sheet4.

I also tried with vLOOKUP instead of MATCH and the same thing happens.

I also tried this and the only thing I get is "Un-Assigned"

=IF(AND(A1='sheet2'!E:E),"Morning",IF(AND(A1='sheet3'!E:E),"Afternoon",IF(AND(A1='sheet4'!E:E),"Evening","Un-Assigned")))

View 3 Replies View Related

Return All Instances Of Lookup?

May 12, 2014

I have four columns, Play Date, 1st, 2nd, 3rd.

I have a total of 364 rows of data for this table.

My output table looks like the following:

{mod note - HTML not working and removed}

What I want the output from a formula(???) to do is put every 'Play Date' for each 1st, 2nd, & 3rd column for every number from 0 to 9. So under Column A for zero and 1st I want every date that is listed in the source table in column 1st to list out. All I can get is the first instance of a date and nothing else.esn't use that would be great.

FYI the formula that I used to get the one entry in column A row 4 was this:

=INDEX($AK$4:$AK$367,MATCH($A$2,$AL$4:$AL$367,0))

View 2 Replies View Related

LOOKUP Return Smallest Value

Feb 10, 2007

I have a large set of numerical data, with each column having a text heading in the first row.

I want to use a function similar to HLOOKUP that can return the numerical value in a certain row of a column that has a specified heading....AND if there is more than one numerical value that meets the criteria, I want it to return the lowest numerical value.

My numerical data cannot be sorted into ascending order.

View 9 Replies View Related

Lookup And Return Array

Mar 8, 2007

I have two columns of data, one containing Groups, another containing Items. Like this:

Group | Item
A | Apple
A | Orange
B | Pear
B | Banana
C | Tire
D | Coffee

etc.

On another sheet, I have each of the groups listed as column headings. I want to resort the data and display it in columns instead of in a single list.

I can write a VLOOKUP to search for "B" for example, and return "Pear", but I want to return all matches for "B" not just the first one.

View 2 Replies View Related

Lookup Value Then Return Value In Row 1 Of That Column

Nov 22, 2007

I have a list of values in column A (part numbers)

In columns B to E I have lists of similar values (part numbers, with row 1 representing their location e.g warehouse, office, etc).

In column F2 I would like to search for the value in A2 in the range B2:E100 and return the value in B1:E1 if the value appears... if it doesnt appear in any of the columns I would like 'not located' to appear in F2.

I've been trying to do this for a while but am making no progress at all.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved