Change Formula Based On Cell Value In A1

Apr 21, 2007

= SUMIF(SHIPPED!$A$3:$A$13,A2,SHIPPED!$B$3:$B$13)

I would like for the formula to change to what is in A1.. If I change A1 to C, I would like for the formula to replace A with a C in the formula.

SUMIF(SHIPPED!$A$3:$A$13,A2,SHIPPED!$C$3:$C$13)

View 5 Replies


ADVERTISEMENT

Change Cell Formula Based On First 2 Numbers Of Another

Apr 17, 2009

Would anyone have a script for something like this?

I'm looking at range c5:c1200

Starting at C5

If the first 2 digits in that number start with 01 then I want the formula to be in G5 = F5*12

if the first 2 digits are 03 then I want G5 = F5*24

I have several of these if statement to put in However I need it to check the entire range as well because the formula may be different in each cell (G)?

View 14 Replies View Related

Change VLookup Formula Based On Cell Value

Mar 6, 2012

I have one sheet from which work is assigned to 10 different employees. Its format is something like the following:-

document number assigned to status remarks
12345678 john
45678910 steve
11247511 john

The individual sheets are then saved and assigned to all the employees.

document number assigned to status remarks
12345678 john approved
11247511 john denied info req

Now I want to update the data in the sheet by something like this

document number assigned to status remarks
12345678 john =vlookup(A1,[empname.xls]Sheet1!&A:$D,3,0)
45678910 steve
11247511 john

I got to know that indirect can be used for this.

View 1 Replies View Related

Constant In Formula To Change Based On Cell Value

Jan 3, 2008

I am creating on the fly an array (2 columns) in which the one row cell is mathematically derived from its neighbor (A left-hand cell). However, when the mathematically derived product exceeds a value, the row neighbor changes to another constant until its neighbor's product exceeds another value, etc. Can I create such an array without resorting to VBA?

View 9 Replies View Related

Formula To Change Date In One Cell Based On Text In Another?

Jan 29, 2014

I am trying to put together a report tracking sheet, ie I have different test that take a different length of time to return to the office and I want to be able to see when a test should be back from the lab,ie:

A blood sample takes 1 day, a urine sample takes 3 days.

I need a formula that basically says that if the data in cell A1 = Blood, (and I have the test date in cell A2) then the data in cell A3 should says A1=Blood, A3=A2+1 to give me the test due date

I found the following formula in one of the other posts;

=IF(E5="BLOOD",G5+1,IF(E5="URINE",G5+3,0))

The problem that this will only work with two tests and I have more than two tests, I have fourteen and each takes a different length of time to process.

View 7 Replies View Related

Change Formula Cell Reference Based On Another Cell Reference

Jan 8, 2012

How do I change a formula cell reference based on another cell's reference? I'm building a schedule that looks to a task's trigger and adds days based on that relationship. All entries in column "A" will be text and all cells in "B" will be the simple formula "=A2" or "=A3". Due date is calculated by adding the value in "C" to the preceding date in column "D". In the spreadsheet below, the trigger for "Budget set" is "Specs written" with 3 days added to the previous due date.

________A________________B_____________C_________D
1 Task___________Trigger_____________Days_____Due Date
2 Design begins__Proj OK______________10____10-Jan
3 Specs written__Design begins (A2)____5____15-Jan (D2+C3)
4 Budget set_____Specs written (A3)____3____18-Jan (D3+C4)

If the trigger for A4, "Budget set", changed from A3 to A2, is there a way that the formula that determines the due date in D4 could read the trigger cell reference in B4 so that the value in the corresponding row in column "C" is added in the date column?

View 4 Replies View Related

Event Change To Change The Sheet Name Based On A Cell Value

Jul 21, 2009

Im trying to use an event change to change the sheet name based on a cell value, but my issue is how can I error trap if the sheet name is a duplicate? Here is what I have so far

Sub ChangeName()
On Error GoTo errhandler
Sheets(1).Name = Sheets(1).range("d10")
Exit Sub
errhandler:
MsgBox "sheet name is already exists"
End Sub

View 9 Replies View Related

Change To Formula Based On A Range

Apr 26, 2014

=IF(D8=9999,"",IF(D8<>"",0.02,""))

I am currently using this formula and rather than 9999 I want any number from 9000 to 9999 to result in 0

View 1 Replies View Related

Formula To Offset Based On Change

May 24, 2012

I'm looking for a formula that will take the cells used as a heading and place them cell into columns with the corresponding rows under the heading.

I'm thinking that the formula will have an offset that counts the blank cells in column A then place the text from the heading cells (by heading cells I mean the ones that say "Type A" and "Code X") next to the rows with the products.

Maybe a VBA script? What do you think?

View 7 Replies View Related

Can A Formula Change Based On Data In Other Cells

Feb 25, 2004

What I mean is, I have a formula that sums a specific cell across several tabs.

=sum('120:125'!C15)

Lets say that this formula resides in a summary sheet. And that the summary sheet is definable by a control in another sheet (user friendly).
So in the user friendly sheet, a user toggles to 'Assets'. In the Summary sheet, Assets appears in cell a1, there is a lookup table somewhere, and a lookup value of 120 appears in cell a2.

I want the formula above to adjust for cell a2.
If a2 = 115, then the formula should adjust to

=sum('115:125'!C15)

Of course after I understand how to do this, I can do the same with the end of the sheet range and the cell ref.

View 9 Replies View Related

Change Cell Address In Formula On Cell Value Change

Mar 25, 2013

I have below formula.i need to change the cell address AK in the below formula on the value change in the A3.

=SUMIF(Working!$D$6:$D$3000,Report!B3,Working!$AK$6:$AK$3000)

For example if A3 is having value AZ i need the formula changed automatically as below

=SUMIF(Working!$D$6:$D$3000,Report!B3,Working!$AZ$6:$AZ$3000)

View 4 Replies View Related

Change Column Referenced In Formula Based On Date

Dec 12, 2013

I'm trying to create a list that references an existing data set where I have staff listed month by month and based on today's date, imports only if there is data in that column. I have figured out how to check if the cell is blank or not, but what I want to do now is change the cell that is referenced in the formula based on the date. Here is the format of the spreadsheet I'm working with:

A
B
C
D
E
F
G
H

[code].....

In this case, the "Team 1" and "Team 2" and "Team 3" references what team they are on that month. If it is blank, they aren't with the company any longer. The formula I am using is intended to import this data elsewhere, and is formatted like this:

=IF(ISBLANK(B2), "", A2) - My understanding is that this checks to see if B2 has data, and if it does, it inputs the employee name (A3) in that cell.

My ultimate goal is to be able to change the column referenced after the "isblank" calculation based on the date. So if today is April 2013, I want it to check B2, but if it's December 2013, I want the formula to check J2. Is there a way to do this? I don't mind if it's two steps (like if I have to put the date somewhere in the spreadsheet in order to run the calculation), but ultimately it would be the type of thing I could do that would leverage the existing data set so that I don't have to maintain two different spreadsheets of information.

View 2 Replies View Related

Change Cell Value And Not Change Formula

Jan 27, 2007

I want to edit a cell's value without changing the formula the cell contains.

View 10 Replies View Related

Excel 2007 :: Get Cell To Refer To Date That It Contains And Change Cell Colour Based On That?

Dec 19, 2012

I work for a UK charity and have a list of funders in an Excel 2007 spreadsheet.

One of the columns refers to the date on which a new application for funding can be made to that particular funder.

In many cases new applications for funding can't be made for 1 or more years since the last application - sometimes as many as 5 years later. How to get a cell to refer to the date that it contains.

For example, say I have in cell A1 "The Acme Funding Organisation" and in cell B1 (i.e. the "Reapply when?" column) a date of 01/04/2013 (British date format, i.e. 1 April 2013) then what I want Excel to do is to look at the date in cell B1 and if that date has been reached to highlight the cell red. That way I'll know that the reapply date has been reached & that a new application can be made.

View 2 Replies View Related

Excel 2010 :: Change Colour Of Cell Based On Date In Other Cell?

Jan 10, 2013

I am trying to create a sheet in XL 2010.

In Column A each cell will contain a date (differnet from other cells in that column) when inspection was last done.

Column B is when the weekly inspection is due.
Column C is when bi-weekly inspection is due.
Column D is when monthly inspection is due.
Column E is when 6 monthly inspection is due.

I need a formula to change the colour of cells B, C, D & E when each inspection is due depending on the date entered in A

I am hoping its possible that the cell colour can stay for 2 days after the due date and then return back to blank after the second day.

For example if cell A1 has a date of January 1 2013 then on January 8 2013 cell B1 turns red then on January 10 2013 the cell returns back to normal.

A1
B1
C1
D1
E1

Inspection Date
Weeekly Due
Bi-WeeklyDue
Monthly Due
6 Monthly Due

January 1 2013
Change red Jan 8 & return blank Jan 10
Change red Jan 15 & return blank Jan 17
Change red Feb 1 & return blank Feb 3
Change red June 1 & return blank June 3

Ive also attached the worksheet

View 1 Replies View Related

Excel 2013 :: Change Text In Cell Based On Date In Another Cell

Apr 14, 2014

I have the the following spreadsheet: [URL] My formula in Columns A to E is the following:

=IF(ISNA(VLOOKUP(Query1_2[@Branch],Master!A:J,10,FALSE)),"Branch Not Open",VLOOKUP(Query1_2[@Branch],Master!A:J,10,FALSE))

I would like to do the following in Column A: If the date in Column C is greater than today, then Column A must also say "Branch Not Open". I have tried the following:

=IF(ISNA(VLOOKUP(Query1_2[@Branch],Master!A:J,10,FALSE)),"Branch Not Open",VLOOKUP(Query1_2[@Branch],Master!A:J,10,FALSE)),IF(C:C<=TODAY,"Branch Not Open, IF(AND(C:C=>TODAY,VLOOKUP(Query1_2[@Branch],Master!A:I,9,FALSE)))

But Excel does not like the formula at all.

View 1 Replies View Related

Conditional Formatting - Change Cell Color Based On Date In Another Cell

Oct 9, 2013

I have two columns. In column B is the date of "last check". I column A is the date of "next check". I would like to have cell A2 in yellow color 334 days after the date entered in cell A3 and than in red color 365 days after the date entered in cell A3. Same thing for cell B2 related to date entered in cell B3. Yellow color in cells announces that check will expire within 30 days and red color that check has been expired.

View 1 Replies View Related

Change Colour And Values Of Cell Based On The Value In Adjacent Cell?

Nov 10, 2012

I need to write a condition in such a way that cell IF A1= "DBR","BPR","SLR","SKR" then change cell B1 to SPECIFIC COLOUR Each condition different colour. A1 values ("DBR","BPR","SLR","SKR") is a list of selectable values. if the condition is falls then B1 should be normal (white color cell) with 0 in it.

View 1 Replies View Related

Change A Cell To Be Positive Or Negative Based On Name From List On Another Cell

Dec 8, 2013

My goal from image is to enter a number for example in cell F4 and have in appear in L6 so simply L6=F4 but I want it to be negative if cell M2 reads "Outgo" and positive if cell M2 reads "Intake" as selected from the list. Is this possible?

View 5 Replies View Related

VBA To Clear Contents / Change Value Of A Cell Based On If Another Cell Has A Value And Continue L To R

Mar 9, 2013

I am relatively new to VBA. I am creating an attendance calendar that tracks employees calling sick, late etc.. It is a point based system. What I am looking for is, a way to clear the point value that was manually entered in a specific cell (I3), if there is a Value manually entered in (CU3). Each column in my worksheet is for a specific date ie; I3 is the cell where I enter the points (1.00) for that employee by calling in sick on 3/1/2013, (Column "I" is for 3/1/2013). After 90 days, this point accumulated by the employee does not count against them, so I need that point entered in (I3) to either = 0 or the cell contents to be cleared if there is a value entered in cell (CU3) which is 91 days after, so my (A3) cell does not add that point acquired on 3/1/2013.

I need this to run in a range (I3:I450) so if any value is entered into (CU3:CU450) it has the same result and continue to for (J3:J450) so if any value is entered into (CV3:CV450) and so on..

View 9 Replies View Related

VBA Change Cell Value To Specific Letter Based On Value Of Different Cell In Different Worksheet

Jun 6, 2014

I've done the following:

Sub BrownBH()
If Range("Brown!B4:B31") = X Then
Range("C4").Value = [#A]
Else
Range("C4").Value = NT
End If
End Sub

However, this doesn't even work.

When somebody enters an X in a specific cell on one worksheet, it's supposed to change the value to A of a specific cell in a different worksheet. Sounds simple enough...but...

View 5 Replies View Related

Change Result Cell Format Based On Input Cell Value

Mar 24, 2007

Macro Based on an input cell’s (e.g. B12) setting of “yes” or “no”, format several other cells (e.g. B20:G20, B23:F23, C26:J26) as follows: keep the existing yellow shading if input cell is “yes”, change to grey shading if input cell is “no”. I would like this macro to run automatically whenever the input cell value is changed.

View 2 Replies View Related

Change Value Of One Cell Based On The Value Of Another?

Dec 15, 2013

Row B is a formula: Copied from B10: =(-E10/($G$2+0.01))+((F10*24)/$G$3)+G10

But I need this value changed in the respective column based on the text of row "D". If it contains "R15", then I basically want the formula to be multiplied by 90% of the original value. And if it contains "R19", then the formula needs to be multiplied by 85% of the original value.

Screen Shot 2013-12-15 at 2.45.51 PM.jpg

Bid Sheet.xlsm

View 3 Replies View Related

Macro To Copy Row And Change Value Of Cell Based On Cell Value?

Oct 7, 2011

Basically, I need to reformat a set of data (see before and after). A specific column should only contain 1 value, if there is more than 1 value it will be separated by a comma. If this column contains more than 1 set of data then I would need to insert a row and duplicate the information based on how many different sets there are. All the copied data should remain the same with the exception of the "Key" column, it should only have 1 value and each copied row should contain the corresponding value in the key field.

BTW - it could be on the same sheet or a different worksheet (doesn't matter)

BEFORE
Name Number KEY Date
Name1 1 a,b,c 12/1/2011
Name2 2 x 12/1/2011
Name 3 5 one,three 12/1/2011

AFTER
Name Number KEY Date
Name1 1 a 12/1/2011
Name1 1 b 12/1/2011
Name1 1 c 12/1/2011
Name2 2 x 12/1/2011
Name 3 5 one 12/1/2011
Name 3 5 three 12/1/2011

View 2 Replies View Related

Change Cell Color Based On Cell Content

Feb 12, 2010

I have a chart full of different names which I need to separate them by color when a specific entry is found in a Cell. For example the list has the store name "ZELLERS" + its branch number. (ex. ZELLERS #276 PL or ZELLERS #295 SL and so on). I would like to modify the below code so that It only check for the name ZELLERS and not the branch number. If it finds ZELLERS in any cell In the Range of C1:C500 then color it Red.

Below Code does that but I have to write the exact name as it appears in the cell otherwise it wont find it for me. Is there any way to resolve the issue? I am not an Excel Programmer but Only an Excel user.

Option Compare Text
Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("C1:C500")
If Intersect(Target, r) Is Nothing Then
Exit Sub
End If
On Error GoTo Endit
Application.EnableEvents = False
vals = Array("ZELLERS #276 PL", "ZELLERS #295 SL", "Gopher", "Hyena", "Ibex", "Lynx")
nums = Array(3, 46, 6, 3, 7, 4, 20, 10, 23, 15)
For Each rr In r..........................

View 9 Replies View Related

Shape Name Change Based On Cell Value Using VBA

Jul 22, 2014

I have a shape on one sheet. Need to change the name of a shapes depending on a value in cell from an other sheet.

View 6 Replies View Related

Change Cell Value Based On Filter?

Jan 3, 2014

I have a spreadsheet I use to track supplier information. On the second tab of the spreadsheet, I have a table that is auto-populated based on the first spreadsheet and is linked to a KPI reporting form that I run for each supplier every month. The information on the report changes as a supplier is picked using a simple data filter. I would like the supplier name on the KPI form to change to the supplier that is picked from the filter on the first spreadsheet.

View 4 Replies View Related

Cell Value In Col B To Change Based On Text In Col A?

Apr 27, 2014

I need to include a prefix of +91 and +911 based on a text in column A. If any cell in column A has a specific text and when I enter a number in corresponding cell in column B it should add a prefix number as below.

If any cell in col A has text "STATE LINE OR MOBILE 1" then the corresponding cell in col B should add a prefix of +91 to whatever number I enter in that cell of col B.

If any cell in col A has text "MOBILE 2" then the corresponding cell in col B should add a prefix of +911 to whatever number I enter in that cell of col B.

If any cell in col A has any other text then the corresponding cell in col B should be the same number as I enter in that cell of col B.

View 6 Replies View Related

Change Cell Color Based On Value

Jul 20, 2009

I'm putting the sum of 3 cells in a 4th cell(D2). If the sum is greater, I would like the sum to be the color green. If the sum is less, I would like the sum to be the color red. Is this possible?

(D2) has change value, I want to compare the new value against the existing one.

View 9 Replies View Related

Picture To Change Based On Cell Value

May 31, 2013

I have posted example work book

Sheet1 has a list that changes based upon input in Sheet2
So, I have reference pictures on Sheet2 that I would like to show on Sheet1 under the corresponding value.

Explanation: on Sheet two a value is assigned (in column B) to each category (Column A) and then it is ranked (Column C)

Sheet 1 lists the categories in rank order.
I want pics to show under each category.

I saw some articles online, but have been unable to make it work.

View 3 Replies View Related







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