Excel: Cell contents as formula requirements - excel

I have a simple formula =sum(sum(d5*u300)/g4)
Is it possible to have the formula look up cell A1 for the d, a2 for the 5, a3 for the u, A4 for the 300, A5 for the the g and a6 for the 4. In other word each formula cell reference is made up of the contents of two other cells.This would be used in a selection process to produce a table for a graph. NON Excel Users could then use a drop down list in A1 to select column d etc. With thanks.

Do you mean something like:
=SUM(SUM(INDIRECT(A1&A2)*INDIRECT(A3&A4))/INDIRECT(A5&A6))
? Let's say A1 contains D and A2 contains 5. Then INDIRECT(A1&A2) will return the value of the cell D5.
However, I don't understand why you use SUM with just one argument.

Related

Fill blank value in Excel

Need help in Excel for the following problem
ColA ColB
A1 B1
A2 B2
A3 B3
A4
A5 B5
A6 A6
A6
A6
if Column B is blank, I need to copy the value of ColA into ColB. But if the value is already present, then no action is needed.
Is it with formula or Vba?
A formula like should be ok (you copy/paste this formula to every cells in your Col)
=IF(B1="",A1,B1)
In column C enter the following formula:
=IF(B1="", A1, B1)
Copy this formula down column C. Then, assuming it looks right, you may delete the current column B, leaving the new column to become the new column B.
It is important to note that this formula won't work if directly entered into column B. In that case, Excel would complain about a circular reference.
Highlight the entire column B used range and press Ctrl+F to open find and replace then insert select
find " " (leave blank)
replace =OFFSET(INDIRECT(ADDRESS(ROW(), COLUMN())),,-1,1)
Which looks like:
Result:
This, INDIRECT(ADDRESS(ROW(), COLUMN()), refers to the cell itelf, and -1 column offset argument refers to column to left.
You can then do copy paste as values to convert formulas to hard coded values.

IF condition in a cell name search function

Okay so I'm stumped. I'm trying to create a function that will find any letter ("c" for example) in a specified column and grab the value in the cell next to it to add into a larger sum.
Example:
A1=3, B1=c,
A2=4, B2=d,
A3=1, B3=c
should return 4
How would I achieve that in excel-like language?
Assuming you want this in Excel, type the following function in C1
=IF(B1="c", A1, 0)
Drag the cell C1 to fill the column. i.e.
C2 will be =IF(B2="c", A2, 0)
C3 will be =IF(B3="c", A3, 0) etc.
Now use summation on column C.

Dynamic Subtraction formula in excel sheet

I need to write a formula in excel for dynamic subtraction which subtracts a cell(of a specified column) from the cell just above it.
For example, A2 = A1 - G1 (G column is fixed)
and A3 = A2 - G2
and A4 = A3 - G3
and so on.
Excel is smart enough to use a dynamic reference and relative reference to the current cell. For example if you put =A1-G1 in cell A2 and use the square to drag this cell down, you will automatically get the similar formula in all others in column A.
Video example: Copy cells and keep formulas relative to current cell

copying the data from formulated column in Excell?

Hi I have three columns in MS Excell. The columns are A1,B1,C1. C1 is calculated automatically based on formula. The formula defined for C1 is(=A1+B1). I mean C1 is the sum of A1 and B1. Now the problem is I wanted to copy the value of C1 to A1 and want to make the B1 column filled with 0.
The moment i try to copy C1 and paste it into A1 the A1 is displaying as "#href" something like this. so how do i copy the value of C1(without Formula) and then paste it to A1?
When you copy from C1 in A1 Excel is trying to insert in A1 the same formula contained in C1 with your relative addresses adapted to the new position, so the new formula in A1 should sum the two cells at the left of A1, but there are not cells at the left of A1, so the #href error is telling you that.
To do what you want you should paste it like "value". You find that option in the Paste command

Setting a cell to a value of another cell IF another cell was value X

Is there a formula in excel to allow you to obtain the value of another cell WHEN a second cell was value X?
For example, something like:
=GETWHEN(A1,3,B2)
Which would return B2's cell value when A1 is value 3.
So if let's say you had a cell B2=4*B1. And B1 you set to 3, so B2 would show 12. But I want to make a row of entries to plot what B2 will be when A1 is 1, 2, 3, 4, 5 etc...
What could I put under A1 Values?
EDIT: I'm not looking for a if like in the conditional sense. I'm looking for the value WHEN (edited now)
You're thinking about data tables.
Provided you have your values in E2:E6, and your formula in B2:
Enter =B2 in cell F1.
Select E1:F6.
Go Data - Data table and put B1 into the Row input cell box (B1 being the cell on which B2 depends).

Resources