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.
Related
I am trying to create a bandwidth tracker. I want the date to populate of next available in the Column C.
For example Name E is getting available on 9/18/2021. I want this date to populate in cell C6.
Can any one tell me the formula to be used for this.
Bandwidth Tracker:
Thanks
INDEX/MATCH should work for you. Put below formula C2 cell and drag down till need.
=INDEX($D$1:$I$1,MATCH("Available",D2:I2,0))
a noobie Excel question.
I have a sample spreadsheet as below:
As you can see I can calculate how many times the unique Traders have appeared by using COUNTIF. However, I can't figure out how count them by month. For example, Tailwind Traders Alpha $ has appeared FOUR times for the month of November.
I just can't figure out the formula and have no idea how to combine formulas.
Any pointers would be appreciated.
For C16 you could put formula:
=SUMPRODUCT((ISNUMBER(SEARCH("*alpha $*",$A$2:$A$11)))*(MONTH($B$2:$B$11)=MONTH(C$15))*(YEAR($B$2:$B$11)=YEAR(C$15)))
You could also use COUNTIFS()
=COUNTIFS($B$2:$B$11,">="&C$15,$B$2:$B$11,"<"&EDATE(C$15,1),$A$2:$A$11,"*alpha*")
To make it more dynamic, you should replace your value in A16 with Alpha $ and then use this formula in C16:
=COUNTIFS($B$2:$B$11,">="&C$15,$B$2:$B$11,"<"&EDATE(C$15,1),$A$2:$A$11,"*"&$A16)
Drag down and right...
Drag right.
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;"")
I am working on a personal budget sheet in excel, and it's formatted based on my pay dates, to provide more drilled-down information. I have attached an example of it below for reference.
I would like to put a formula into J2, J3, and J4 which will take the data in cells C9:C26 and H9:H16, match it to the date in cells D2:D4, then subtract the expenses in D9:D26 and I9:I16 from E2, E3, and E4.
As you can see, I have just individually summed the cells; however, I would like a formula to be able to adjust as I change the value in cells C9:C26 and H9:H16.
I have found that I can do it with ONE cell, but not multiple or a range. This is the formula I used, and I cannot find a way to make it apply to the entire range of cells: =IF(C14=D3,E3-D14)
I've also tried: =IF(C9:C25=D3,E3-D9:D25) -- I know this formula doesn't work and why. I cannot figure out how to get column C to correspond with column D.
The Budget Sheet
You just need to use SumIf().
In cell J2, put this formula: =SumIf($C$9:$C$25,$I2,$D$9:$D$25)+SumIf($H$9:$H$25,$I2,$I$9:$I$25) and drag down the three cells.
With that, you can add E2-[formula] to subtract all that from E2. Or of course, just do e2-J2 instead. I think that should do what you're looking for. If it's not quite it, let me know and I can tweak.
If you plan to have more than 1 criteria go with SUMIFS
Yes, with S
I have a spreadsheet for expenses that I want to be able to apply a formula to the Subtotal column if the currency is JMD. Else, I want to leave sum unchanged. Here is an row that I want to apply to. I only will have one value in one of the columns.
I need the subtotal column to take the column in the row that has a value, if it is JMD, then I need to multiply the value times ".0089" for converting to USD. If the value is USD, then I need to put the value as is in the subtotal column.
Any help greatly appreciated!
I recommend adding a column in which you choose USD or JMD ideally from a drop down (see data validation). If you add it to the left of the current column C, the formula could be as follows:
=sum(F9:M9)*IF(C9="USD",1,0.0089)
Simple, explicit and easy to maintain!
You may have other conditions that you might want to account for down the road, but the following formula addresses your question as is:
Enter the following in cell M9 and copy down as needed:
=IF(IFERROR(MATCH("*USD*",E9:L9,0),0)<>0,TEXT(SUBSTITUTE(INDEX(E9:L9,MATCH("*USD*",E9:L9,0)),"USD ",""),"0.00"),IF(IFERROR(MATCH("*JMD*",E9:L9,0),0)=0,"",TEXT(SUBSTITUTE(INDEX(E9:L9,MATCH("*JMD*",E9:L9,0)),"JMD ","")*0.0089,"0.00")))
Hope this helps. Cheers!