Sum a range of cells based on condition [closed] - excel

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have a sheet like below:
I want to be able to SUM the Value fields if there is a tick next to that person's name, you will see each name has a value and if they attended that week and have a tick then include this value in the sum. I want to populate the Collected Field to show how much was collected that week.
I have tried SUMIF on a range but with no success.
Thanks in advance

SUMIF should work if you want to do it for each week, e.g. in C22 copied across
=SUMIF(C5:C19,"x",$B5:$B19)
replace the "x" with the specific character you are using to get the tick

Related

How to create an excel formula from cells that has int and str values? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am currently a scheduler in the restaurant I'm working. My manager has asked me if there's a way to generate a formula of the total time our workers work in a week.
I can get the sum of two cells if there are two different cells, as shown in the photo, but what formula or is there a formula where you can get the sum of two numbers from one cell? And they contain letters as well. 10:30am-04:30pm is = how many hours(formula).
See photo below
If you have dates in column A, you can use this formula in Column B to get time difference value in HH:MM output.
=TEXT((TRIM(MID(A1,FIND("-",A1,1)+1,10))-(LEFT(A1,FIND("-",A1,1)-3))),"hh:mm")

Weird excel formatting...is this possible? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I made a table in Excel and the inputs are going to be single letters. Is it possible to format the table so that, if a certain letter is inputted, the cell automatically changes to a specified colour???
Thanks, sorry if this isn't the right place to put this question.
Yes, you make use of conditional formatting.
Let's say your table is in A1:G5. Click on conditional formatting. Pick 'Highlight Cell Rules' and 'Equal To...'.
Insert the value you want to highlight and pick the highlight from the dropdown button.

How to select a whole column or row in a formula in excel? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to select a whole column for a formula in excel.
I know I can do this, for example:
=AVERAGE(B4:B54)
which would give me the average of the cells from B4 to B54 but I want to reference the whole B column.
How can I do this?
To reference an entire column in Excel, use this syntax:
=AVERAGE(B:B)

Pure Excel: How do I reference a column wit a dynamic number? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I create a random number in my excel sheet (using RAND), 5 for example. Now I want to reference column A[my number], in this example its A5. How would I do that?
If thats not possible, is it possible to get a random row value from a column?
Thanks!
=INDIRECT("A"&RANDBETWEEN(1;10)) will randomly return cell in range A1:A10.
Usually INDEX is preferable to INDIRECT (it's not volatile and you don't need to "hardcode" the column reference). If you have your random number in B3 try
=INDEX(Data!A:A,B3)

Transposing data from column to row using references [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some data in a row, say A1 to Z1, and I would like to link to this data in another spreadsheet. However I would like to transpose it so the data runs from A1 to A26. It is important that it is linked in some type of function so that if I change the data on the first sheet, the second sheet is updated as well.
I'm thinking of some type of formula that states that as you go down a cell in column A, it knows to grab the data from the next cell to the right in Row 1. So: A2=B1; A3=C1; A4=D1 ...
Any ideas?

Resources