I want range for specific value in excel as,
my values in column A
122.7
250.6
377.9
507.1
635.3
761.1
892.7
1021.5
1154.7
1284.7
my values in column B
50
100
150
200
250
300
350
400
450
500
I have to compare value is 533 in A column. If 533 is value then it should return range 507.1 and 635.3 in separate row for further calculations. (e.g Similarly I input value is 210 then it should return range 122.7 and 250.6 in separate row.)
for further calculations,value which we got from above 507.1 and 635.3 should take value from Corresponding column B i.e value of 200 and 250 in separate row (e.g value which we got 122.7 and 250.6 should take value from Corresponding column B i.e value of 50 and 100 )
Considering your Lookup value is in D1,
Put this formula in E1 to get upper range
=INDEX(B:B,MATCH(D1,A:A,1)+1)
and this formula in F1 to get the lower range
=INDEX(B:B,MATCH(D1,A:A,1))
This should work for you
c1 = Enter the search value
Formula in C2
=INDEX($A$2:$B$11,MATCH(INDEX($A$2:$A$11,MATCH(C1,$A$2:$A$11,1)),$A$2:$A$11,0),2)
Formula in D2
INDEX($A$2:$B$11,MATCH(INDEX($A$2:$A$11,MATCH(C1,$A$2:$A$11,1)+1),$A$2:$A$11,0),2)
Related
i have data in Column A - Days and Column B - Sales i want calculate running total based on Days Value like
Column A Column B
Day1 150
Day2 200
Day3 175
Day4 250
i want total running sum in Column E Based on Value in Column D
here i applied this formula to running sum based on cell value
=SUM($B$2:B2,INDEX($B$2:B5,MATCH($D$2,$A$2:A5,0)))
here i have getting wrong result like if i enter (Day3 in Cell D2 getting result in Cell E2 - 325) it's wrong
The syntax is just a bit off, you should add up the range from B2 to the position found by the match, in this case B4:
=SUM($B$2:INDEX($B$2:$B$5,MATCH($D$2,$A$2:$A$5,0)))
This works because Index returns a reference and can be used as one end of a range.
I'm trying to find maximum value in a given column using excel formulae if column number (like 2, 3, 4) has been specified in cell A2.
For example, if column number in A2 is 2, then the formula should give 220 (max. value under Product 2 column) as he answer.
The data is as follows:
Product1. Product 2. Product 3
200. 150. 180
160. 220. 200
210. 190. 230
You can use Max with Index. Index takes A2 value as column argument and generates an array of the values within that column for the specified range. Max then finds the max value in that array.
=MAX(INDEX(C3:E5,,A2))
I have an Excel sheet that has values repeating in different rows of the same column (Obtain Marks). In RANKS column I want a grade assigned.
My problem is assigning the same rank to cells having the same Obtain Marks values.
How do I assign the same rank to the same Obtained Marks using an Excel formula?
Obtain Marks RANKS
212 1
212 1
212 1
211 2
210 3
209 4
209 4
Assuming Obtain Marks is in A1 and is sorted in order, if you want grouped by rank then I suggest in B2 and copied down to suit:
=RANK(A2,A$2:A$7,)
If you post includes under RANK the desired output then I suggest instead 1 in B2 and in B3 and copied down to suit:
=IF(A2=A3,B2,B2+1)
Either way each group should have a distinct value.
You can derive a pseudo-RANK.UNIQUE formula by modifying an old standard method of a SUMPRODUCT-style COUNT.UNIQUE formula.
The formula in B2 is,
=SUMPRODUCT((A$2:A$8>=A2)/COUNTIF(A$2:A$8, A$2:A$8&""))
Fill down as necessary.
I have a tax table in one sheet that has a list of tax values. For example:
Sheet1: Tax Tables
A B C
1 Min Max Taxed
-------------------
2 50 100 10
3 100 200 20
4 200 300 30
In another sheet I have a gross income value of say 120 in cell A1. What I want to do is have a vlookup (I'm assuming that's what I should use) that checks cell A1 to see if it's between the Min and Max and then outputs the taxed amount in B1.
Sheet2: Income
A B
1 Gross FedTax
-----------
2 120 Value from Column C goes here
I already have the sheet in Tax Tables set up with named spaces A:C=Min and B:C=Max
I tried doing this:
=AND(VLOOKUP(<A1,Min,3,False),VLOOKUP(>A1,Max,2,FALSE))
But not even close...
I just want to check column A in the first sheet to see if it's less than the the value in the second sheet, and check column B in the first sheet against the value in the second for if its more, then put the value in column C in the first sheet into the cell next to the value in the second sheet.
To use a VLOOKUP, put your maximums and minimums in the same column.
Then use the TRUE argument, which means it looks for the next value that matches. Assuming the value you're looking up in D2, you'd put a formula like this in E2:
=VLOOKUP(D2,$A$2:$B$5,2,TRUE)
First of all it is unclear what you would apply when the amount is exactly 50/100/200/300/... So i decided to include the lower limit in the interval and exclude the upper limit.
For this problem I would use a sumifs like this (you have to decide on which side to put the equal sign:
=SUMIFS(Sheet1!C:C;Sheet1!A:A;"<="&A1;Sheet1!B:B;">"&A1)
This would only take those elements in column C that have a value in column A smaller than or equal to 120 and a value in column B greater than 120
I need to take the value in two data columns A and C, get a percentage by dividing the current value of columns A and C by the top value (which is a total), and then average the two percentages and spit them out in column D. For example D2 should be (100(226/508)+(100(218/490))) / 2). I'd prefer to do this with one equation - is it possible?
A B C D
1 508 490
2 226 44.49% 218
3 229 45.08% 221
The formula you want is
=(100*A2/A$1 + 100 *C2/C$1)/2
and the select all of column D downwards and then edit->fill down
The relative reference A2 will change in each row to the new row but A$1 is an absolute reference and will stay as the value in row 1.
You can also do this with array formula that do the fill down for you. See MS article