IF Formula That References A Cell And Returns A Different Result Dependant On The Number In The Cell Being Referenced

Oct 2, 2009

I'm trying to do a formula that references a cell and returns a different result dependant on the number in the cell being referenced.

For example I've said if A1 has a 3 in it then put the word TEST as the result, plus if it has a 4 put the word RESULT.

What I wrote as my formula is as follows-

=IF(A1=3,"TEST")+IF(A1=4,"RESULT")

It works fine when I only use one result but goes wrong when I add two. If I change the words I want to show to numbers it comes up fine but with words it just returns a Value error.

View 2 Replies


ADVERTISEMENT

Formula That Returns Result & Font Color Of Referenced Cell

Apr 3, 2008

I have 2 tables, 1 beneath the other - table 1 columns represent date ranges and their values. Columns and their data are alternating color coding. Table 2 references, by means of array formula, this data - IS it possible to include the font color as a result?

BCDEFGH503/0310/0317/0324/03609/0316/0323/0330/03712348Prod113,91113,69713,58213,4849Prod21,9241,8943,1151,86510Prod31,2601,2401,2301,22121Age (Days)22Prod1211391123Prod22624Prod326

Formula in H22 = '{=SUMPRODUCT(((H$5-$D22)>=$E$5:$O$5)*((H$5-$D22)

View 9 Replies View Related

Replace Cell References In Formula With The Header Of The Cells Referenced In Said Formula

Dec 22, 2009

Here is the scenario:
A B C D
BananasApplesOrangesTotal113=A1+B1+C1

I need to reference the formula in D1 with the cells headers names.

In a perfect world, it would take
=A1+B1+C1:

and produce:
=Bananas+Apples+Oranges

View 9 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

Formula Returns A Result But The Cell Displays A Zero

Jan 18, 2006

I have a simple formula subtracting one cell from another using =SUM(XX,-XX). When I click on fx and bring up the function arguments box, the formula result is displayed correctly in that box. However, the cell containing the formula will only display a zero. I have tried reformatting the cells to no avail. I have also tried getting a result using =XX-XX and that does not work either.

View 10 Replies View Related

Circular Reference: Cell References In The Formula Refer To The Formula's Result, Creating A Circular Reference

Aug 14, 2006

I have the following formula in cell L51 of all sheets calculating the volume depending on the monthly index that is chosen from the drop down menu in a particular sheet. =If(MIndex=0, SUM(D33:L50),If(MIndex=1,SUM(D34:L50),If(MIndex=2,SUM(D35:L50), 0))). I am getting the following message and I do not understand what it is about.

Microsoft Office Excel cannot calculate a formula. Cell references in the formula refer to the formula's result, creating a circular reference. Try one of the following

View 3 Replies View Related

Use Value From A Cell Immediately Adjacent To Referenced Cell In A Formula

Feb 25, 2014

I need to create a cell reference which will allow me to specify a cell in a table by value (using indirect) and pull the value from a cell immediately one row over for use in a formula. Say I have a table Containing column A and B; I want to reference the value of a cell in column A (e.g. "Large Widget") and receive (in the formula) the value in column B (e.g. "41 cm^2").

View 4 Replies View Related

Formula For Obtaining Value A Dependant On Cell X

Jan 16, 2010

so basically, im trying to find a way to get cell G3 to have Value X dependant on value from Cell G2. e.g. if cell g2 is 8 and 9, g3=10 if g2 is 11, g3=20 and so on. i dont mind having to add a preset table of values if we need, but it would be set on sheet 2.

EDIT
Value from cell G2 will always be between 4 and 20, set by the user. what i want is that each of those values gives G3 a pre-planned value.
if g2 has value 4. g3 value would be -5
if g2 has value 5. g3 value would be 0
if g2 has value 6. g3 value would be 5
if g2 has value 7. g3 value would be 5
if g2 has value 8. g3 value would be 10
if g2 has value 9. g3 value would be 10
if g2 has value 10. g3 value would be 15
if g2 has value 11. g3 value would be 20
if g2 has value 12. g3 value would be 20
if g2 has value 13. g3 value would be 25
and so on until it reaches g2=20

i was thinking of setting a table on sheet 2 for the g3 values, and get an IF function to do something like IF g2 = a then x, if g2 = b then y etc etc. im just not sure how it would work, unless an INDEX function would work better?

View 4 Replies View Related

Prevent #REF! When Moving Cell Referenced By Formula

May 14, 2008

I have an IF formula on one worksheet that refers to another worksheet (ex: =IF(Page1!$A13="";"";Page1!$A13). The problem is when I move data from one cell to another the formula becomes #REF. (ex: =IF(Page1!#REF="";"";Page1!#REF)).

View 6 Replies View Related

Why Formula Returns Result For One Line And Not The Other?

Jul 27, 2014

I have a two different formulas the return a numbered result(PO Number) in the same column. I then vlookup both of them with the same formula into a pivot table, one returns the result one doesn't. format appears to be the same.

View 6 Replies View Related

Sum Formula Returns Incorrect Result

Dec 1, 2009

I have created a table in excel, and it has a very simple sum totals. When i include all cells in the table the total becomes 0. When I exclude a cell in the table, the total shows. I have deleted the row and re inserted another one and copied the cell content from above that was not having a problem,

View 9 Replies View Related

VLOOKUP Formula Dragdown Copies Previous Cell Result Instead Of Unique Result

Jun 10, 2014

When I drag my VLOOKUP formula down a column in Excel 2010, the return value copies the formula result from the original VLOOKUP formula result. For example, if the first VLOOKUP returns a value of 0.5, I expect to see 0.5 or 1 in the cell below that one. However, I get 0.5 which is not the expected result for the cell below.

When, I click the fx on the cells below, the expected return values appear in the formula result. After I click OK, the expected formula results updates and now appears in the cell.

I'm not sure what is causing this issue. My computer was updated recently from an old machine to a new one. I have never experienced this issue before.

View 3 Replies View Related

VBA To Follow Formula To Referenced Range And Edit Source Cell

Feb 23, 2014

I have tried numerous versions of macros I found. Most get the same error of; Range object error or script error.

Here is the formula: VLOOKUP(C$13,VESSELS_DATA,ROW(30:30)-12)

What I would like to do:

1) double click to on the cell with the formula

2) goto the worksheet "DATA_TABLES" that contains the Named Range "VESSELS_DATA"

3) go down the rows until the c13 is matched

4) offset column the same as in the above formula "Row(30:30)-12"

View 9 Replies View Related

Formula That Returns A Result Based On All Dates In Column A

Feb 15, 2007

I need a formula to count cells based on the date, so that I can have a blank cell when the answer is 0. I am adding values cumulative and future cells need to be blank because I have a graph that has a trend line and I don't want the trend line to fall off at the end. I also don't want to have to go back to this every month and update it.

Column A
Date
1/2/2007 0:00
1/3/2007 0:00
1/10/2007 0:00
2/10/2007 0:00
2/10/2007 0:00
2/15/2007 0:00
3/22/2007 0:00
3/22/2007 0:00
3/22/2007 0:00
4/31/2007 0:00
4/31/2007 0:00
4/31/2007 0:00

Column B
Invoice #
CM-0003881
CM-0003882
CM-0003883
CM-0003888
CM-0003928
CM-0003932
CM-0003933
CM-0003985
CM-0004007
CM-0004008
CM-0004009
CM-0004065

I have this formula in cell F3 that will add the dates through the end of January:
=SUMPRODUCT((A1:A1000>=DATEVALUE("1/1/2007"))*(A1:A1000

View 10 Replies View Related

Using IF AND Formula To Display A Cell With (0) As Yes But It Also Returns Empty Cell

Apr 14, 2014

I wrote an IF AND formular to display "Yes" for a cell with zero. but when the cell is also empty, it still returns a "Yes" instead of empty.

this is the formular:

=IF(J2=3,"Yes",IF(AND(E2="",I2=0),"Yes","No"))

when I2 = 0 it returns Yes

Also with I2 = "", it still returns "Yes" instead of "No"

View 6 Replies View Related

Formula That Returns The Cell Address Of The Last Cell > 0 In A Range

Jul 16, 2008

I am looking for a formula that returns the cell address of the last cell > 0 in a range.

in the example: A1CLA23 8
4546557528

the result should be A7.

View 9 Replies View Related

Date Value Returns A Number In Cell

Apr 13, 2009

I have a small problem where I 'm using an input box to enter a name of the sheet & the date in a cell, However when it asks the user to enter a date it only shows a number as the date? For example I enter 12/31/2009 it places 40178 in the cell?

View 2 Replies View Related

Get Cell References From Formula

Aug 8, 2007

I am trying to code the following in VBA. Excel Cells have formulae like: '=+BZ165-BZ163-BZ162-BZ160-BZ159-BZ157-BZ153'. Now I want to write code in VBA which will be able to give me the individual cells referenced in this formula: BZ165, BZ163 etc. These names can be stored in individual variables or arrays.
I will then use these for further processing. Note in cases where formula refers to data in another sheet like: '=Projects!P49' or data in another excel like '='C:Documents and SettingshoskopDesktop[Annual.xls]Quarterly'!BA$502': I would like to store the path , file name and sheetname in variables/arrays as well.
Any pointers as to how I should approach this problem?

View 7 Replies View Related

Formula For Cell Result Based On Other Cell Input

Sep 3, 2007

I'm trying to work out the way of having a cell give a result based on what has been input into two other cells.

Basically I'm doing up a risk management spreadsheet. I need to have in one cell the LIKELIHOOD of an incident, in the second cell, the CONSEQUENCES of it happening and ending up with a RISK MANAGEMENT ASSESSMENT in the third cell.

View 9 Replies View Related

Autofill; Copy Down It Doesn’t Automatically Update The Cell References Because It Want To Update Them By Column Number Instead Of Row Number

Dec 11, 2008

I have a basic formula =C17+'Asset Depreciation 2008 Onwards'!C24, and I want to copy it down just using the drag function. Problem is that the second reference range of cells are in rows and hence when I copy it down it doesn’t automatically update the cell references because it want to update them by column number instead of row number. IE I want it to display =C17+'Asset Depreciation 2008 Onwards'!
D24, instead of C25. Do you know if there is any way of telling Excel that I want it to increase the column number by 1 every time, instead of the row number for this part of the formula?

View 5 Replies View Related

If Formula - Returns Zero For Blank Cell?

Jan 12, 2012

I'm using the following formula, and keep getting a zero when the cells in D4 are blank when I simply want exactly whatever is in D4 to be shown...

=IF($B$2="Alness",Alness!D4,IF($B$2="Amsterdam",Amsterdam!D4,IF($B$2
="Atlanta",Atlanta!D4,IF($B$2="Budapest",Budapest!D4,IF($B$2
="Dalian",Dalian!D4,IF($B$2="Debrecen",Debrecen!D4,IF($B$2
="Durban",Durban!D4,IF($B$2="Edinburgh",Edinburgh!D4,IF($B$2

[Code] ..........

View 9 Replies View Related

Vlookup In Cell With Formula Returns #n/a

Aug 18, 2009

I have a VLOOKUP formula in a cell that refers to another cell that has a formula in it.

When I type the actual numerical result (rather than the formula) in the formula cell, the vlookup works. When the formula (that equals the same number) is in there, the vlookup cell is returning #n/a.

View 9 Replies View Related

A Way To Get The Cell References In A Formula Change

Sep 6, 2009

Is there a way of getting the cell references in a formula change following a change in the content of a cell in the worksheet?

View 9 Replies View Related

Variable Cell References Within Formula

May 18, 2009

I have a number of Cell names LR0Cost, EX0Cost, IM0cost that hold %

formula might be

View 4 Replies View Related

Multiple IF Formula With Cell References?

Mar 12, 2012

can Excel do a double if formula by looking at cells and not fixed type info.

EG: I have a % achieved and $ bonus to pay: however the % achieved & the $ bonus to pay information in the cell will change each month

So... I want the formula to say
=IF (look for cell A1 (which has %achieved) and if found use A2 ($bonus) to give me an answer... otherwise false

The second dillema I have is that A1 has 3 ranges from 100-150, 150-200 & 200-300 to calculate with a set % in A2

View 8 Replies View Related

Identifying Cell References In Formula ADV

Mar 26, 2013

I am working with some fairly long formulas and I am looking for a way to highlight those cells AND work in the document. I know you can click in the cell and it will highlight them, but if you click off the cell the highlights go away. Is there a way to keep them highlighted?

View 1 Replies View Related

Formula That References A Cell To Deterimine A Tab Name

Jul 2, 2008

I have a "CURRENT MONTH" tab in a workbook; in that Workbook, I have a standard report that pulls Total Revenues from cell C6 of the tab I want to reference.

For example: In my "CURRENT MONTH" tab B6 has the label "CURRENT MONTH REVENUES" C6 has the formula "='May 08'!C6"

Every month I have to change that formula to "='Jun 08'!C6" as an example for June. (it's not just one formula, there are dozens referencing May that I need to change to Jun).

I could do an Edit/Replace, but I'd rather just type in the current month tab name in another cell and have the formulas pulling the data referencing that cell.

View 9 Replies View Related

Replace Character Used In Formula Where Formula References Cell

Feb 23, 2008

I am using vlookup to get a cell value from another sheet, but if the cell has "&" or "/" I need to substitue "&" and "/" with "and" so that the cell can be added later to a url.

i am using =VLOOKUP(a1,Sheet2!A1:W17968,6) to get the value of a1 in sheet 2 and return the value of column 6

this will return "Audio Cables & Leads" but i need it to say Audio Cables and Leads

I need the formula to also check and replace "/" with "and" as well so cables/wire will be Cables and wire

View 9 Replies View Related

Automatically Shade Cell Dependant Upon Text In Aother Cell

Jul 13, 2009

Im writing a spreadsheet that will act as a hotel room booking diary. There will be 52 sheets (representing each week of the year) and each sheet will therefore represent one week

Each sheet will look at operate the same. Running horizontally will be the days of the week and running vertically will be each of the bedrooms. There are 22 bedrooms in total and each room will have 12 cells allotted to it for each day - lets call this a 'block' and presume that the first block runs from C10 to c21. The final of these cells C21 will have a validation and the user can select 'PAID' 'TO PAY' or 'INVOICED'

If the user selects 'PAID' in C21 I want cells C10 through to C21 to shade GREEN
If the user selects 'TO PAY' in C21 I want cells C10 through to C21 to shade RED
If the user selects 'INVOICE' in C21 I want cells C10 through to C21 to shade YELLOW

View 3 Replies View Related

Formula That Returns Address Of The Active Cell

Jan 31, 2009

Is there a formula in Excel that returns the active cell address (ie dynamically). Excel updates the activecell address in the Name Box dynamically as you make a selection but I cannot find a standard formula to access it. I know I can achieve this with code using the selection-change event but this action then disallows use of the Undo button - which I specifically want to avoid. Perhaps there is an add-in available?

View 9 Replies View Related







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