I want to compare two numbers in two cells in excel. This is what i am trying to achieve but not able to
A1 = 100 (say)
B1 = 105 (say)
I want to find out if B1 is more than 10% of A1 or not.
This is what I have tried but in vain:
IF(A1="",0,IF(B1="",0,IF(B1>A1*1.1,TRUE, FALSE)
For your case:
if B1 is more than 10% of A1same as:if B1 is more than 11Thus in C1 enter:
=IF(OR(A1="",B1=""),"",IF(B1>0.1*A1,"yes","no"))
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 have a list of numbers(about 199 in all) in a column. I want to calculate absolute values of the differences between first numbers from top and bottom, second numbers from top and bottom , third numbers from top and bottom until I get to the middle. These will be written in another column next to the existing column. I need the most efficient way to do this. Please kindly help me with possible way to do this in excel.
With Excel 365 and data in A1 throught A8, in C1 enter:
=INDEX(A1:A8,SEQUENCE(4))-INDEX(A1:A8,9-SEQUENCE(4))
With any even number of values in column A, consider:
=LET(x,A1:A8, n,COUNT(x), hlf,SEQUENCE(n/2), INDEX(x,hlf)-INDEX(x,n+1-hlf))
The values in C1 through C4 are equivalent to :
A1 - A8
A2 - A7
A3 - A6
A4 - A5
EDIT#1:
To "reflect" the top rows into C5 through C8, in C5 enter:
=INDEX(C1:C4,SEQUENCE(4,,4,-1))
(You may need to wrap the C1 formula in ABS() to avoid negative values.)
I want to apply the result of an IF statement on multiple cells, so for example A2, A2 and A3 are equal to 1, 2 or 3.
When A2 is equal to 1 I want to get B2,B3,B4 = 1,0,0
When A3 is equal to 2 to get B5,B6,B7 = 0,1,0
And when A4 is equal to 3 to get B8,B9,B10 = 0,0,1
Is this possible?
First thing about Excel: you can't write a formula that changes the contents of another cell. A formula only gives a result in the current cell. That result may well be based on the contents of several other cells, and the result in the current cell may be used by several other cells.
So here are two possible answers:
(1) In B2, write
=If(A2=1,1,"")
In B3, write
=If(A2=1,0,"")
and keep going for the other 7 cells B4:B10.
(2) If you wanted a single formula that would do roughly what you describe, it would be quite complicated but do-able.
In B2, write
=IF(INDEX(A$2:A$4,(ROW()+1)/3)=INT((ROW()+1)/3),IF(MOD(ROW()+1,3)+1=INDEX(A$2:A$4,(ROW()+1)/3),1,0),"")
and pull or copy this down through cells B3:B10.
Then use Formulas | Evaluate Formula to see what it does.
EDIT
If A2, A3 etc can be 1, 2 or 3 then the formula would be simpler
=IF(MOD(ROW()+1,3)+1=INDEX(A$2:A$4,(ROW()+1)/3),1,0)
you're just seeing if the remainder on dividing the row in column B by 3 (+1) is equal to the corresponding value (1, 2 or 3) in A2, A3 etc.
I am working in Excel 2013, and I have data like the following:
A1
A2
A3
B1
B2
B3
(The As go to A13, Bs go to B13, Cs go to C13, and so on until you get to row 2495.)
How do I divide this long column where the 14th row moves to the next column? See below:
A1 B1 C1 ...and so on
A2 B2 C2
A3 B3 C3
...
A13 B13 C13
B1: =INDEX($A:$A,(COLUMNS($A:A)-1)*13+ROWS($1:1))
Fill right to AA1
Select B1:AA1 and fill down to row 13
The above assumes you are going A-Z. But you must have other characters also in order to get to 2495 rows. Your real data may require some tweaks from what I have presented -- either filling down further; or filling further to the right, or using a different constant then 13
If you want to parse the data into three separate columns then in B1 enter:
=A1
In C1 enter:
=A14
In D1 enter:
=A27
Then copy these three cells downwards:
I have two numbers for example
24,000 and 46,123
What I want is to create the number 24,000.46123 from this.
How can this be done in Excel? I wont know how long the second number is so I can't just divide by 100000 for example
24,000 + (46123/100000)
With values in A1 and B1 in C1 enter:
=A1+B1/(10^LEN(B1))
and set the format:
Try this in the cells of your spreadsheet:
Set cell A1 to 24000, set cell B1 to 46123, finally in cell c1 set =value(concatenate(a1,".",b1)