# Formula: If Value Return Is = To Value Of Cell Above Then Find Return Next Value

Feb 17, 2010Is there a way with the following formula to tell it that if value return is = to value of cell above then find return next value?

View 6 RepliesIs there a way with the following formula to tell it that if value return is = to value of cell above then find return next value?

View 6 RepliesADVERTISEMENT

Is there any formula to find text and return its cell address? This is like when we use Ctrl+F function to find a text, and Excel then highlight the cell contains the referred text. At the same time, the name-bar displays the address of the cell. Now, is there any formula that can perform such task like this?

View 9 Replies View RelatedIn the attached sample work book Col E has text that I want to check if it is also in Col G and return Yes or No into Col F

View 4 Replies View RelatedI 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" })

Column A:

pants A green

Pants B red

Jacket C green

Jacket D blue

Polo C white

....

I need a formula to find some value( in our case "colors" = "green, red, blue, white" ... = 20-30 values), and to return in column B, the values, like:

Column A: Column B:

pants A green | green

Pants B red | red

Modern green Jacket | green

blue winter jacket | blue

Polo white D | white

I have different product feeds (csv) and i will like to search for colors in the product names.

I have a spreadsheet with multiple columns. (Sheet1) The heading row is my customer name. (Sheet1) My column are the dates. On another spreadsheet, I would like to find the customer in Sheet2 in Sheet1, then do an index to find the relevant data I need, returned in Sheet2.

Sheet2: find customer "ABC" in Sheet1, if found, then find the date that also matches Sheet1 and Sheet2, and return data "apple" .

sheet1

DATE ABC DEF

2007-04-01 £55.60 £61.13

2007-04-02 £56.33 £60.27

2007-04-03 £52.14 £62.58

2007-04-04 £51.69 £61.28

sheet2

CUSTOMER DATE RATE

DEF 2007-04-04 This should be £61.28

ABC 2007-04-02 This should be £56.33

Sheet 1

Sheet 2

UPC

Sku

[Code].....

I would like to find the value from Sheet2 Column1 in sheet1 Column1 and return value from Sheet1 Column2 and Column3 into Sheet2 Column2 and Column3

And if it doesn't find anything just return Not Found

The problem that a Vlookup is not working for me is because I want it to be the exact text from sheet2 column1 but in sheet1 column 1 it should not be exact as it might have some extra text as seen in the illustration above

I have a formula that needs some tweaking. This formula is to reference the ACCT and find the “best” contact information and return the result to the Merge sheet. If the ACCT does not have a Parent then you reference the ACCT to the abc_Phonelist sheet. If the ACCT does have a Parent then use the Parent ACCT since it has a more desirable account number to reference against the abc_Phonelist. If the ACCT or the Parent ACCT uses Processors then the ACCT from the Processors sheet has the best reliable account number to reference against the abc_Phonelist.

In sum, there are three different possible “number tiers” that can be used. The first, the ACCT phone number. This means that the ACCT has neither a Parent nor a Processor. The second, the parent ACCT phone number. This means that the ACCT has a Parent, but neither the Parent ACCT nor the ACCT has a Processor.The third, the Processor phone number. This means that either the ACCT or the Parent ACCT has a Processor phone number.....

This time I'm trying to use the max value and row value at the same time, but it won't let me. Here's what I'm trying to do...

A B C D

1 a b c d

2 7 9 4 2

3 e f g h

4 8 2 7 8

5 i j k l

6 4 3 3 9

I want Cell A7 to return the letter before the highest value in column A...

A7=e

B7=b

C7=g

D7=l

I tried to do something using two cells, but even then I couldn't figure it out.

I thought a ROW(MAX(A1:A6)) would give me the row and I could go from there, but that didn't work.

Have a range of data with names dotted in different rows and cells.

I want to find a name, the return the number in the cell to the right.

Can use VLOOKUP as names arent always in same column of the range.

I have a problem with VLOOKUP. The Value im trying to look up a value which is one of 5 sheets Called Con1 to Con 5. These Sheet names are in an Array called "ArrCons" the look up value range is also a variable and looping through column "C". The table Array is on Sheet "Con" Range "A:E", return column is 2 and the logical value is "false".

ActiveCell.Offset(i-1,2)=Application.VLOOKUP _(ArrCons(y)!C & i -1, Sheets("Con").Range("A:D"),2,False)

I am drawing a complete blank of this one. I know it can be done but I can't seem to remember how I did this in the past.

I have a sheet that has cells A1 at MB, A2 as ML A3 as MD

Then in cells B1 I have MB,TL then in B2 I have ML and then B3 is Blank this time.

Then in cells C1 I have Jim, C2 has Jack, and C3 has Fred.

What I want to do is have a formula that is in cell D1 that looks at the value in A1 and finds that value in Column B and if it is found return the value in the same row in Column C. In the example it would show Jim since MB is found in cell B1.

I'm trying to write a macro where I match specific letters from one cell, with a column in another sheet so I can copy/paste adjacent cells. As an example I have a list of part numbers in column A of my Document1:

ex.

C12932-1

C13226-2

I want to be able to find the corresponding part number in column A in Document2:

ex.

C-12932

C-13226

However the proplem is clearly that the part numbers are written differently. So I need to just search for "12932" or "13226"

table1.jpg

I am looking for a formula that will satisfy the following:

1) find all the values in column "A" that match

2) In column "G", sum up all the values in "F" that go with the matching values in column "A"

3) For example, in rows 14-16, the values in column "A" match. Cell G16 sums up F14:F16

How to return address of the column or cell I selected from Application.Inputbox, not just return the value?

[Code] ....

construct a formula that finds a value in a range , then returns the cell address of that value.

Say, i wanted to find the amount 12385 from another sheet , range C2:AA12 (contains only numbers , no duplicates). result should give me the address of that value.

I have tried the address & match function but gives me an N/A error.

I need to write a conditional formula that will look up in a 2nd worksheet the last coloumn with data (note that there will be some coloumns in the row that will have data and some that will be blank, I need the last column for that specific row to be the return result)

View 9 Replies View Relatedwhen I use the range.find function to find a certain value in a column.. i want to return the address of the cell.. and save it in a range variable. how would I do that?

so this is what i have now.. but Rng does not return as a range.. it returns 69... when i use ctrl + G and type ?rng

set rng = .range(A:A).find(what:=69, After:=.Cells(1, 1), Searchorder:=xlByRows, searchdirection:=xlPrevious)

ok so say it picks up..... cell A69... how do i get it to save range A69

On Sheet2 I have a table where I want M2 to do the following:

1.) Look at cell A2 where the name "John" is and B2 where the name "smith" is.

2.) Look at sheet1 and look in B2 and C2 for "John" and "smith"

3.) Once it matches the name, place the contents of sheet1, cell I2 into sheet2, cell M2.

So in short, match the name on sheet2 to the name on sheet1 and return the number in I2 to M2 on sheet2.

Maybe combining the persons name in to one column would make it easier?

I would like to be able to find all cells in row 2 that are "greater than 0". Then I would like to return the coresponding job number in row 4. I need to create a list of each job with the number of hous spent on that job next to it. I may have 30 different jobs but only 5 jobs that have hours for the specific week.

How I attemted to solve this is to create a table that listed all the hours from the largest number in row 2 to the smallest. Then I found the job number corresponding to that number of hours. The problem with this meathod is that if two jobs have the same amount of hours then the first job number is returned for both values that are the same. See attached example.

I have this table, which can be seen as a basic custom gantt chart: KLRWo.png

And I would like to fill the A column with start dates, based on the first filled cell of the range on the same row, and the header value of its respective column (row 1). It's easier to show my expected result than write it actually:

WiMZH.png

Working on an export from an e-commerce application that lists the item purchased, unfortunately not by item #, but rather a lengthy description. I'm trying to construct an item number based on that description which contains several constants.

Each item ordered appears in a single row, comprised of ORDERID, QTY, PRODUCT DESCRIPTION

I have several tables to pick out PRODUCT TYPE, COLOR, SIZE, etc. I need a formula to search to see which of the unique values appears in each in the cell and return the shortcut of that value.

PRODUCT DESCRIPTION example "Sweater - Blue - Large - Wool"

TYPE TABLE:

Sweater SWTR

T-Shirt TSHT

Jeans JEANS

COLOR TABLE:

Blue BL

Green GN

Purple PL

Black BK

I would have separate tables for each part of the description.

The formula I'm seeking would search the PRODUCT DESCRIPTION cell for the range of values for each 'part'. So it would search to see which of Sweater, T-Shirt, or Jeans was in the cell and then return the one that was - SWTR in this example. I would modify this formula for each 'part', in its own cell, and then use an =cell#&"-"&cell#&etc... to combine these returned values.

I know I can write a large if- chain using ISERROR & FIND, though some of these lists will get lengthy.

I have a spreadsheet with a column A of dates April 08, May 08, June 08 etc. Adjacent to each of these dates is a value in column B. I want to select the appropriate value relevent to the current date and use it elsewhere. Therefore if it happens to be Oct 08 when I open the spreadsheet I want the value in column B, adjacent to Oct 08 to be represented.

View 3 Replies View RelatedLooking to find 1 of 2 words in a cell in column B and return the word found in the same row in column E. This seemed easy but I am not having any luck.

the cells in column B have several words in them but I am looking for 2 specific words "PLAT" and "ORIG". If the word is not in the cell, it should show a blank cell in column E in the same row, otherwise one of the 2 words should be in that row in column E. A VBA loop would be ideal but a formula that can do it might work as well.

i have is 3 sheets in the same excel document. Sheet 1 is the mater sheet, which is a compilation of sheets 2 and 3, however the sheet layouts are different.

The sheets consist of a list of names and details. Sheet 1 has all the names in the list, however sheet 2 and 3 only have partial lists that are in a different order from the original list. The details listed next to the names in sheets 2 and 3 are different and hence a straight forward row copy and paste will not work.

What i need is to write a vba script that can take the name from the master list, search sheets 2 and 3 for the name and lookup the variables placed in next to the name, then update the master sheet accordingly, then continue to the next name on the master sheet and do the update again, and so on until all is updated. I have already thought about using lookup functions in excel however there is 1000 names on the list and around 60 details so it would be messy.

I have a drop down list in a merged cell B12-F12 and B13-F13 and B14-F14 . . . B30-F30.

I need the adjacent merged cell to populate a reason (text) based on the text answer in the drop down list or the entered text in the first merged cell. For example in the cell B12-F12 the user picks from the list or types in "Amiodarone." I want the adjacent merged cell G12-J12to automatically fill with "Heart Rhythm." I also want to be able to set up multiple if - them statements like if Amiodarone is entered then fill adjacent cell with Heart Rhythm and if Toprol XL then fill adjacent cell with Heart / Blood pressure and if simvastatin then fill adjacent cell with Cholesterol, etc. I have about 30 different options for cell 1 that I want to have auto fill in cell 2 based on the contents of cell 1. I've attached my file.

I want the user to be able to choose from the list or type the drug name in.

I have two spreadsheets.

spreadsheet 1:

Lookup from Order numbers listed from A5:A177.

requested formula in I5: I would like a lookup to sheet 2 based on the order number (F19:F191), to return the cell above the first non-blank value.

spreadsheet 2:

Lookup value:Order number listed from F19:F191.

Data search:AY19:CI191

return the (date) which is in the range above the data search from row AY18:CI18.

I've had a look at few forums but i'm getting mixed responses, having to use index / match / lookup / min / --.

I am trying to complete these steps:

Take a value from AK59 from the "EQF" tab in a file called "QuoteMaster.xls"

Use that value to find match in column "A" in a Seperate workbook "ITMSTR.xls" on the "Sheet1" tab

Offset to the right 1 cell of the found value, take back to the "QuoteMaster.xls" and put in cell "AN59"

My code comes up with no errors, it opens the file and closes is as shown, but it doesn't copy the value over for whatever reason...

I currently use the following formula to find the last used cell in a row:

=LOOKUP(2,1/($6:$6<>""),$6:$6)

which works fine but I have been trying to amend it so that it returns the last but one cell in a row. Have tried using it with Offset but without success.

Have found other solutions to finding to the last cell in a row albeit that a number of them do not seem to work with my project and likewise none of them seemed to allow customisation of any sort.

I need to return 100% in a cell for cells B2/A2. If B2 = 0, and A2= 0, I want the result to be 100% as a goal attainment returning 100% in C2.

How do I do this? I get a DIV error as usual.

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