Get A Cell To Return A Value If The Criteria In A Cell Is Met?

Dec 8, 2009

how to get a cell to return a value if the criteria in a cell is met?

Ie if cell A1 = a date dd/mm/yy then return the value "yes".

View 9 Replies


ADVERTISEMENT

Return Value When Criteria Met From Another Cell

Feb 10, 2008

I have the name of an employee in cell B5 that I choose from a list. In cell L18 I have the result of the quality monitoring for this employee for a certain task. Now I have a seperate spreadsheet where I need to come up with individual performance scores. What I need to do is return value in L8 if B5=the agent I'm looking for. This also means that I would need to be able to do this on multiple cells in the same sheet. I've tried: =IF('[Workbook.xls]Sheet1'!$B$5=Name Employee,'[Workbook.xls]Sheet1'!$L$8,0) But I get a #name error and being pretty new to this I have no clue what to do next.

View 3 Replies View Related

Return Cell Containing Search Criteria

Dec 8, 2009

If I have a 'key' value in a cell in one sheet, i want to use that value to find the cell in another sheet containing the 'key' and return the row number of the cell, if more than one value then I would like to be able to loop through all the rows containing that 'key' value returning the row number of each hit, kind of a programmatic version of vlookup?

View 8 Replies View Related

Formula To Return Cell That First Meets Certain Criteria?

Mar 5, 2014

Say I have a column of cells filled with numbers that are ascending. What I would like to do is to pick out the first cell that meets my condition. For instance, these cells contain irrational numbers that increase from 0 to 100. I would like a formula to pick out the first cell that exceeds 10.2, and to return the row number of that cell.

In the case of descending numbers, if I would like to pick out the first cell that goes below 10.2, would the formula be the same?

View 3 Replies View Related

SUMIFS - If No Criteria Match Leave Cell Blank Else Return Value

Nov 5, 2011

I'm trying to set up my formula so that if there is no criteria match, rather than returning 0 it leaves the cell blank.

(I recommend skipping the below text and just opening the attached spreadsheet, instructions/what I'm looking for and trying to achieve and well laid out requirements and examples are in the spreadsheet and much more thoroughly explained then I can do below)

I'm setting up a table that grabs data from columns in a raw data spreadsheet.

For the purpose of the table I'm making, the formula needs to match up both the House, and the year/month from the raw data sheet, then if the two match and are side by side, return the value to the right either in the Plan Field or the actuals field depending on which field in the table the formula is in. If there is no entry or matching criteria for both the house and Month then it should leave the cell blank, not show a 0

So I have a SUMIFS formula that I'm trying to set up so that if there is no criteria match it leaves the cell blank.

So =SUMIFS(sum range, criteria& range, criteria&range), if no matching criteria can be found, leave cell blank, else if matching criteria found then return value from the sumrange.

This is the exact formula I am using:

=SUMIFS(INDEX('Raw Data'!$1:$1048576, 0, MATCH(Table!$B9, 'Raw Data'!$1:$1, 0)), INDEX('Raw Data'!$1:$1048576, 0, MATCH(Table!$A$8, 'Raw Data'!$1:$1, 0)), Table!$A$9, INDEX('Raw Data'!$1:$1048576, 0, MATCH(Table!$B$8, 'Raw Data'!$1:$1, 0)), TEXT(Table!C$8, "yyyymm"))

Yeah kind of hard to follow, so attached is a very detailed and well laid out spreadsheet showing the example of what the formula is, how it's working/what it's returning and an example of what i want it to return/look like, so please check out the spreadsheet, it explains it a million times better.

Essentially though i want the formula set up so that if there is no criteria match, rather than returning 0 it leaves the cell blank.

View 3 Replies View Related

Return Multiple Results In Multiple Cells Based On Criteria In Yet Another Cell?

Feb 1, 2012

Worksheet 1: In column A I have a people's initials. In coumn B I have text boxes with miscellaneous text. (The same person could have multiple rows within this sheet.)

e.g.
AAA blue
BBB orange
AAA round
CCC smelly
AAA elongated

Worksheet 2 I want to show:
A2 = initials, B2 = first text box associated with that person, C2 = second text box (different row) associated with that person (if applicable), D2 = third text box (different row) associated with that person (if applicable), etc.

e.g.
AAA blue round elongated
BBB orange
CCC smelly

View 3 Replies View Related

How To Match A Cell Data With A Range Of Cells And Return Cell Reference In Another Cell

Dec 12, 2012

i want to match a cell data with a range of cells and if matches return the cell reference in another cell

View 3 Replies View Related

Excel 2010 :: Return Range Of Cell Concatenated Based On Single Cell Value

Jul 2, 2012

I have a range of cells each containing a name. Based on a number that has to be entered manually I want excel to return the names concatenated in one cell. So for example:

Number of variable entered: 5

q9001
q9002
q9003
q9004
q9005
q9006
etc.

Should give me: "q9001 q9002 q9003 q9004 q9005"

I have been trying to work with formulas using IF and CONCAT functions. But so far I haven't figured out how to have excel return me the correct amount of variables for each separate number that can be entered seeing the number of variables entered can vary from 1 up to 50.

(Using Excel 2010)

View 7 Replies View Related

Excel 2010 :: How To Return Value Of Cell Beneath A Cell With Specific Value

Jun 14, 2014

What I'm trying to do is, create a formula that works like vlookup, except I want to return the value of the cell that is a specified number of cells below the looked-up data in a single column array. So, let's say cell A1 reads "Bacon". In B1, I'd like to put a formula which searches the array for the cell that contains "Bacon" and then returns the value of the cell underneath, let's say the value is "Eggs". Then in C1, I'd like to put another formula which also looks up "Bacon" in the array, then returns the value of the cell that is down two cells from the cell that contains "Bacon", let's say the value is "Milk". And then in D1, a formula that returns the value 3 cells below "Bacon", and so on. All the values here will be text, and not sorted in any specific order. I'll be using Excel 2010.

Please take a look at the attached sheet if it clarifies things.

View 3 Replies View Related

Return Word In A Cell To The Cell In Next Column - InStr Not Working

Jan 27, 2014

I am trying to write a sub for using vlookup. To enable the vlookup, I want to return a word in a cell to the cell in the next column. I use the InStr function, but it doesn't work. They all return as "Other".

Attached is the worksheet and here are the codes : Capture.JPG

[Code] .....

View 11 Replies View Related

Find Cell Value In Column & Return Text In Adjacent Cell

Jun 10, 2008

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.

View 8 Replies View Related

How To Return Address Of Column Or Cell Select Not Just Return Value

Aug 18, 2014

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

[Code] ....

View 8 Replies View Related

Return A Value In One Cell Based On Part Of Data In Another Cell

Jan 22, 2014

i have a column of data part number part text e.g 7w1,8b1 in the next column i want to write a function that will look at the other and dependant on whats in it place a word e.g. for 8b1 i need it to look at the "b" and enter beauvale if theres no "b" but a "w" enter wollaton, i have tried an if function and used "*b*" but it doesnt seem to like wildcards ....

View 9 Replies View Related

Formula To Return Value In A Cell Relative To Another Linked Cell?

May 2, 2014

The problem I am trying to solve is to have a cell return a cell value based on another linked cell. The cells I want to link are in separate tabs or could be another workbook.

For example if cell A5 in sheet2 is linked to A20 in sheet1...A5 has formula(=Sheet1!A20). I want the next cell B5 to look at A5 and return the value of cell Sheet1!D18.

So in essence I want the second cell to look at the first cell and return a value that is 3 columns over and 2 rows up.

View 4 Replies View Related

Value X - Match Occurrence In Row A With Parallel Cell In Row B / Return Row B Cell Value

Dec 21, 2013

I have a value in $ED$1. This is Value X.

Row A = $DO$7:$DV$7
Row B = $DO$10:$DV$10

[Formula location = $EE$1]

Where Value X occurs in Row A, l want to return the parallel cell in Row B.

Both rows are sorted in numerical order. There is a slight complication though: Row A might contain multiple occurrences of Value X. If Value X is repeated several times in Row A, I want to find the left-most occurrence of Value X in Row A, i.e. the one closer to Column DO.

View 5 Replies View Related

Barcode Input To Match Cell And Return Value Of Another Cell

Jul 25, 2014

I get a text file daily for routed deliveries containing a barcode, name, address and phone number that I convert into csv and then upload it into a route optimization software. after optimization is complete it has assigned packages to drivers and I export it to excel and print. My sorters are having a difficult time reading the addresses on the packages and assigning them to the proper driver, so I am trying to come up with a way.

My idea is that I can import the barcode as a custom field into the route optimizer and then when I export it, that barcode field will still be associated to that order. I want to scan the barcodes of the package into column C which will reference all of the barcodes in B and when it finds the match, it will return the value in A, the driver assigned to that particular package. This way my sorter will just have to scan the packages and throw it into the proper bag for the driver instead of having to visually scan the printed manifest to match.

View 2 Replies View Related

How To Reference A Cell In Another Workbook And Return Cell Value And Comment

Nov 2, 2012

What is the best way to reference a cell in another workbook and return the cell contents and the comment on that cell. I would like the comment to come across as a comment in the new workbook becuase the comment is actually a picture.

Hope this makes sense. I did find a macro through googling but I couldn't get it to work? I don't really want to copy and paste because eventually I have hundreds of sheets & thousands of cells to refer to.?

View 2 Replies View Related

Lookup Value In A Cell With Multiple Values And Return Value From Different Cell

Nov 19, 2013

At work I have a spread sheet that I used to track material shortages by part number. So in column A of the spread sheet there is a list of part numbers that have shortages, column E contains a list of all sales orders that are affected by the shortage separated by a comma. I am trying to setup a query sheet where I input a sales order and get back a list of parts that are short for that sales order(basically reversing the original list to be by sales order instead of part number). The number of values in column E varies, sometimes a cell will have 1 value, sometimes 20+ and anywhere in between.

Example Sheet:
A
B
C
D
E

123

012

234

789, 567

465

789

890

012

I'm already got a INDEX/MATCH that would show both shortages for sales order 012. But I can not figure out how to get the shortages for 789 or 567.

View 1 Replies View Related

Search For Text Within Cell Then Return Contents Of That Cell?

Jun 19, 2014

So right now I have a spreadsheet that looks something like this:

A
B
C
D

[Code]....

As you can see, the stock names are slightly different in columns A & C (CORP. vs CORP, CO vs CO., etc). I need a formula in column D that searches column A for the first word in column C, and then retrieves the contents of that cell. I want to do this because I will then use a vlookup in column E to get the ticker for the stock.

Right now I have: =IF(ISERROR(SEARCH(LEFT(C1,FIND(" ",C1)),A:A,1)),A:A,"")

This formula searches column A for EXXON, but does not return the contents of the cell. Instead, it returns the contents of a different cell in the column.

View 4 Replies View Related

Return Maximum Of Active Cell & Arbitrary Value To Cell

Nov 18, 2007

I am looking for VBA that will add the value of the current active cell on the sheet to the value in cell F12. The maximum value of F12 cannot exceed 1000. So if the value in F12 = 950 and 100 is the value in the active cell the maximum value in F12 should show 1000, not 1050.

It should do this on the click of a button.

View 5 Replies View Related

Find Cell Value In Another Workbook & Return Adjacent Cell

Aug 12, 2008

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...

View 3 Replies View Related

Refernceing Cells: Formula That Looks At A Cell On A Front Sheet, And Then Returns The Contents Of That Cell As The Result If It Meets The Criteria

Apr 5, 2009

I have a formula that looks at a cell on a front sheet, and then returns the contents of that cell as the result if it meets the criteria. So for example this formula would be in Cell A1 on Sheet2 IF(SHEET1!A1,"New",Sheet1!A1,"-")

This formula is always in the same cell (different sheet) as the cell that it is looking at, down 1500 rows. Instead of having the formula named for each cell is there anyway to ask excel to 'look at this cell but on this other sheet'.
e.g IF(Sheet1!"This Cell" etc). That way no matter what cell you put the formula in it is always referencing the correct cell for the formula?

View 2 Replies View Related

Copy Cell Value To Cell On Other Sheet Based On Two Criteria

May 8, 2014

I used this vba code before:

[Code] ......

And it worked perfectly, but now i wanted to use it in an other file but just change the sheets and I keep getting an Error 13.

It should copy the data from sheet insertmeasurements c23 till end of data in the column next to it (is dynamic) and based on cell B1 and the matching category code in column B, put that data in the matching cell in column C to the matching cell (based on the criteria in column B and C) on the sheet storedata.

Attached File : Profitibility Database v1.4.xlsm‎

View 1 Replies View Related

Copy Cell To New Location Based On Criteria In Another Cell?

Jun 25, 2014

I've sent out a survey asking people to sign up for one of two groups, A or B. I have a table with a long string of responses, with the name in column A, and in columns B or C there is an X that shows whether they have chosen Group A (column B) or Group B (column C)

I am trying to write a bit of code where it would paste the names into a new table with the headers Group A and Group B. Here is what I have pieced together so far:

Sub Create_Groups()
For i = 2 To Range("B2").End(xlDown).Column()
If Range("B" & i).Value = x Then

[Code].....

View 5 Replies View Related

Code Which Highlights A Cell Depending On Criteria Of Another Cell?

Mar 7, 2012

code which highlights a cell depending on the criteria of another cell.

Example.

In B1 I have the formula =NOW() (we all now what this means).

In B2 I have a completion date.

I would like A2 to fill with a specified colour.

Can this be done so that it works down the whole sheet, if the date is in B5 then only A5 will highlight so basically only the A cell on the same row will change depending on the date in B on the corresponding row?

View 4 Replies View Related

VBA Code To Color Cell When Certain Criteria Fills Cell

Feb 18, 2007

In column "L" there is the possibility to have one of the following characters entered as a key for that specific row;
G
X
B
G1
G2
S
Y
H
SB1
SB2
They all have a unique color assigned to them. There are too many for conditional formatting, so I think the way to resolve this is to use VBA. Can I ask for some assistance to get me started?

View 9 Replies View Related

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

Feb 17, 2010

Is 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 Replies View Related

Return Cell Value 30 Cells After Reference Cell

Apr 1, 2014

I want to find the cells 30 past the reference cell and the corresponding value:

i.e. =Sheet1!D312 to =Sheet1!D342 (=Sheet1!D(312+30))

or

=Sheet1!D312 to =Sheet1!E312

is there a way to automate this without having to manually edit each formula?

View 8 Replies View Related

Find Cell In Array, Return Value Of Cell Next To It

Oct 23, 2009

I have a table with multiple columns in which I want to find a value, then return the value that shows up to the right of it.

For instance:

I want to look for a unique value that exists in a cell somewhere in columns B-F, then I want to return the value of the cell in the next column.

So if I have value XYZ, and it's found in row 12 of Column B, I want to return the value in row 12 of column C.

Any way to do this with an index and match or some other formula?

View 9 Replies View Related

Formula To Return A Cell Location Not Cell Value?

Jan 31, 2013

Is there a standard way across all Excel formulas to have the cell location returned rather than the value of the cell itself?

In other words A33 instead of "52" (with A33 being the cell that contains "52")

View 1 Replies View Related







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