Excel

Status
Not open for further replies.

scratchnsurf

Player Valuation: £40m
Any Excel wizards out there?

If so, I'd appreciate a PM to help me figure something out.

I've already tried copious amounts of sawdust.
 

Surely we can solve this in public.

Whatcha trying to do?

I have 3 columns of numerical data. For this data, I have a formula that will 'read' the values that are in those columns and then total how many cells have a particular value in one or more of those columns. This works fine. What I want is to only select certain rows in those columns for the formula to be applied to. This selection is based on a value in another column.
 
I have 3 columns of numerical data. For this data, I have a formula that will 'read' the values that are in those columns and then total how many cells have a particular value in one or more of those columns. This works fine. What I want is to only select certain rows in those columns for the formula to be applied to. This selection is based on a value in another column.

Can you use a vlookup?
 

Can you solve this using a series of IF statements?

I have spent some time trying to do just that without success.

The bit I have that works is =SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0))

I now want to only apply that formula to the rows in the range that have a particular value in another column.
 

I did start looking into that, but I'm not sure it does what I want. Doesn't it just look at a set of data and indicate whether certain values are present?

My memory is a little vague on it, cos I'm relatively new to that kind of thing, and only used it once, but I think you can compare the contents of a cell to the vlookup value and then it will insert the contents of the corresponding cell into your table. Something like that at least.

https://exceljet.net/excel-functions/excel-vlookup-function
 
I have spent some time trying to do just that without success.

The bit I have that works is =SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0))

I now want to only apply that formula to the rows in the range that have a particular value in another column.

You should said that straight away mate, sounds like your starter motors gone.
 
I have spent some time trying to do just that without success.

The bit I have that works is =SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0))

I now want to only apply that formula to the rows in the range that have a particular value in another column.

Manipulating your data to create #AlternativeFacts...you make me sick.
 
I have spent some time trying to do just that without success.

The bit I have that works is =SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0))

I now want to only apply that formula to the rows in the range that have a particular value in another column.

If I'm understanding you correctly, you could do with another IF statement, before your formula

So if you're saying to only apply the formula if (for example) a10 has the same value as B10

IF(A10=B10, SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0)), "Something else")

With the something else, being what you want if a10 <> b10
 
I have spent some time trying to do just that without success.

The bit I have that works is =SUM(IF((J2:J30<=2.75)+(K2:K30<=2.75)+(L2:L30<=2.75),1,0))

I now want to only apply that formula to the rows in the range that have a particular value in another column.
Sounds like you either need to use the FIND function, or familiarise yourself with the INDEX and MATCH functions.

It's hard to help without being able to get hands on with the data.

Also, sometimes it helps to not try to shoehorn all your calculation into one formula. Don't be afraid to have some interim formula that calculate a column at a time, then consolidate in a further formula.
 

Status
Not open for further replies.

Welcome

Join Grand Old Team to get involved in the Everton discussion. Signing up is quick, easy, and completely free.

Shop

Back
Top