I am trying to figure out a way to get Excel to increase a cell, A1, that controls another cell, B1, until B1 equals a constant cell, C1.
For instance, the industry standard to do a task is 4000 hours and is a constant; cell C1 = 4000.
Cell A1 is the number of work weeks my team must work to finish this task. Cell A1 drives a lot of calculations but arrives at cell B1, which is the work Hours necessary to complete the task. I must change the work weeks (A1) to change the work hours (B1) to match the standard. Changing A1 changes B1 (on a wicked curve, which negates using a straight up formula). I need B1 to equal C1 by letting Excel change A1. A1 will then automatically tell me how many weeks the team should work. I cannot find a formula and I don't know how to increment A1.
The examples below show me hand-jamming A1 which moves B1 closer to matching C1. C1 then gives me the proper number of weeks based on my
A1=10.00 B1=1900 C1=4000
A1=15.00 B1=2850 C1=4000
A1=20.00 B1=3800 C1=4000
A1=21.06 B1=4000 C1=4000
Ideas?
Suppose the formula in B1 is =A1*190. DATA > Data Tools, What-If-Analysis, Goal Seek..., Set cell: B1, To value; 4000, By changing cell: A1.
The formula in B1 may be very much more complex and refer to various other cells and ranges.
Related
I'm trying to build a basic financial tools sheet for myself. Here's a problem:
Let's make Cell B1 30 times of cell A1 (B1 = 30*A1). However I'm not sure when A1 is a known value or B1 is.
What I need is when I fill 100 in A1, B1 will be filled with 3000 (30xA1) automatically, and if I fill 60 in B1, A1 will be filled 2 (1/30 of B1).
Is it possible?
I'd like to ask how can I use if and else to my calculation in Excel. Here's the case:
A1=usd, B1=php, C1=conversion amount in usd, D1=total amount in usd
Question: The formula will place in cell d1. I want this way, if I put amount into cell a1 it will only lookup the amount and displayed in cell d1 or if I'm going to put amount in cell b1 and c1, cell d1 calculates the conversion of cell b1 and c1 (a1/c1)? Can you provide me formula or code?
Try
=IFERROR(IF(A2<>"",A2,B2/C2),"")
You can modify the conversion as per your wish.
Note: It will calculate conversion only if the A2 cell is blank or else it will display the value of A2.
Let me know if it works.
I am trying to find a formula on excel that will allow me to randomly select a cell between a range (this part I have found a formula for) and have the value pasted into another cell AND then have the cell next to the randomly selected cell's value also selected and pasted into a different cell.
Not sure if this makes sense so I will explain what I'm trying to do.
I have a column full of years and the adjacent column full of prices that correspond to each year. I want a year randomly selected and pasted into a cell lower down on the spreadsheet, and I want the corresponding price for this randomly selected year pasted next to this cell.
Thank you in advance!
Anna
Say the data is in A1 through B10
In D1 enter:
=INDEX(A1:A10,RANDBETWEEN(1,10))
and in E1 enter:
=VLOOKUP(D1,A1:B10,2,FALSE)
Another approach is to enter:
=RANDBETWEEN(1,10)
=INDIRECT("A" & C1)
=INDIRECT("B" & C1)
In C1 through E1
(Either approach will work if column A contains years rather than names)
Yet another approach is to enter:
=RANDBETWEEN(1,10)
=INDEX(A1:A10,C1)
=INDEX(B1:B10,C1)
In C1 through E1
I need some big help on this.
I need to increment my cell references in a formula everytime some condition is used.
Let's say i take my data to be displayed in A3 from B3, my formula will be A3 = B3 in simple terms, but the next day I will need A3 to take data from B4 instead as B3 will be my past data already, how will I increment the formula to change to A3 = B4? Forgive me on my ignorance.
Based on your clarification in the comments above, this should work fine:
=OFFSET(B1,COUNTA(B:B)-1,0)
Input the above in A1. It will always return the last row in Column B (assuming your data in Column B is contiguous).
Screenshot:
Set-up:
Result:
Hope this helps.
As an alternative to the Offset() suggestion, try in A1
=INDEX(B:B,MAX(IFERROR(MATCH(99^99,B:B,1),0),IFERROR(MATCH("zzzzzzz",B:B,1),0)))
This will work with both numeric and text data. You can edit the formula to remove the Match for numbers if your file only has text in that column, and vice versa.
Key differences to the Offset() suggestion:
this formula will return the last entry in column B, even if there are gaps and blank cells in column B
the index/match combo formula is not volatile. Offset() is volatile and will cause the whole workbook to recalculate when any cell anywhere in the file changes. In large data models with many calculations, that can cause slowness. I a small spreadsheet, you won't notice a difference.
In spreadsheet cell B1, the value is -1200.
I want cell B2 to copy the value of B1 and limit (validate?) it to no less than -800.
I'm using google docs but can also use excel if those functions are not available in google docs.
Edit:
If B1 has the value of 2000, B2 should have the value of 2000.
If B1 has the value of -2000, B2 should have the value of -800
Excel & Google Spreadsheets
=Max(B1,-800)
Excel formula would be pretty easy, probably similar in Google Spreadsheets:
In B2, put this formula:
=If(B1<-800,-800,B1)
This is saying:
If the value in B1 is less than -800, then put the value "-800". Otherwise, use the value from B1. This effectively puts a "floor" or a lower bound on the formula.
You don't need any maths here. I'm using Excel but I think it is pretty similar in Google.
Suppose that B3 holds floor, no constants in formulae :-)
B2 => =if( b1 > $b$3; b1; $b$3)
b3 position is fixed so you can copy the expression