Row Formula relation in Excel - excel

Is there a way to make connection between the formula and a number in the cell
As Example If we have a number 5 the formula take information from cell A5, If the number is 33 to take information A33. I want to make relation between different sheets.
Thank you in advance for your help

You could use Row() and Column()
I use this formula a lot to enumerate rows that have a thing we need
=ALS(IF(B15<>"";C15<>"";D15<>"";B15<>"");RIJ()-4;"")

Related

Excel sum column's value of matching cell criteria for all the cells

I need to sum Amount for all the dates if there is value in India row:
I tried implementing with COUNTIF function but its not solving my problem, any suggestion welcome, I am pretty new to Excel formulas.
Try this.
Let's assume the top left cell on your image is cell "A1". Go to cell "C6" and paste the following formula:
=IF(C2>0,C2*(SUM(C4:C5)),"")
Now fill/copy that formula across to cell "G6". Then go to cell "H6" and paste the following formula:
=SUM(C6:G6)
Hope this helps.
What about this:
=SUMPRODUCT(C2:E2+C3:E3,C4:E4+C5:E5)
It's basically adding the two first rows, adding third and fourth rows, and taking the sumproduct. Obviously, you need to make sure not have a number in both rows one and two, and in both rows three and four.

Filling data with with information from 1 of 3 cells

I hope I can explain sufficiently for someone to understand and be able to help, I have 27000 records to update into one column.
I'm hoping to use a formula to fill column D with data from column A but if that cell is blank use data from column B and again if that column is blank use data column c.
]: https://i.stack.imgur.com/DTwI7.png
Try this:
=IF(A1<>"",A1, IF(B1<>"",B1,IF(C1="","",C1)))
This doesn't use IF, and so is more flexible for use with longer ranges.
=INDEX(FILTER(A1:C1,A1:C1>"",""),1)
It FILTERs the row for non-empty text cells, and returns the first one via INDEX.
May be like this in your cell D2
=IF(A2<>"", A2, IF(A2="", B2, Value(C2)))

How to dynamically adjust a range in a calculation in Excel

I have an excel formula =SUM(AZ2:AZ300)
I want to make this more dynamic by using the formula =ROW(OFFSET($B$1,COUNTA($B:$B)-1,0)) in cell A1
Then I want my formula to do the following =SUM(AZ2:AZ&A1)
This formula doesn't work, but it to take the sum of cells AZ2 through AZ and the number given in cell A1
For example if A1 value is 250 then I want the formula to be equivalent to =SUM(AZ2:AZ250)
Thanks in advance for your help.
Rather than putting the row number in a separate cell you could combine it in the formula:
=SUM($A$2:INDEX($A:$A,COUNTA($B:$B)-1))
This does the same as the OFFSET version, with the bonus of not being volatile.

Build a formula based on some cell values

The solution I'm looking for is a non-vba one, hopefully there's any.
I'm planning to build a formula at B7, something like =SUM(B3:B5), but the value B3 and B5 is taken from C7 and D7.
I'm working on a weekly employee salary tables, a sheet can contain some employee salary tables, broken down into week by week, using the ordinary SUM function will take more efforts, so I'm looking for an easier way to do it.
Any clues would be much appreciated.
This is my solution, use the following formula:
=SUM(INDIRECT(CONCATENATE(C7,":",D7)))
CONCATENATE to join both cells in order to form the range C7:D7.
INDIRECT to transform your text into a valid range.
SUM to sum the specified range.
To avoid this you could also choose to show the total value in a different column and a simple =sum($B:$B) would do.
But above is the answer to your specific question.

How to return strings which occur more than 4 times in an excel doc

Fairly new to excel, I have a document with rows and columns filled with names. Basically i want to be able to find if any names are there more than 4 times, and if so which names these are. What is the formula I would need to do this? I've tried iterations of countif and index but I just cant seem to get it right. Thanks in advance
So, if you have your input values in column A:A. Enter this formula into B1 and drag it down:
=IF(AND(COUNTIF($A$1:$A1,$A1)=1,COUNTIF($A:$A,$A1)>=4),$A1,"")
And then you get your final result without blank cells in C1 (and down) with this formula:
=IFERROR(INDEX($B$1:$B1000,AGGREGATE(15,6,(ROW($B$1:$B1000)-ROW($B$1)+1)/($B$1:$B1000<>""),ROWS(C$1:C1))),"")

Resources