Jump to content

Archived

This topic is now archived and is closed to further replies.

Darth Biscuit

Anybody on here an Excel guru?

Recommended Posts

Darth Biscuit    12,581

I can do this manually but I want to automate it since I'll probably have to do it again...

 

 

I have a spreadsheet with 4 columns...

 

A, B, C, D

 

A is a sequential number

D is an elevation

 

I need a formula that says if column A is X then Average the values in column D.

 

 

It'd be even better if it said if the value in A is equal, then average D.  Make it a little more automated, but either will do.

 

Is this even possible?

 

Share this post


Link to post
Share on other sites
logic1977    237

what you are asking for seems like a very basic IF formula. 

 

 

=IF(A1=XX, Average(D1:D4),0).  you can set XX to be another cell and then type in the sequential value you are looking for.  this formula would show either the average you want or a zero, based on the lookup of XX

 

If you don't want the cell to be a o if it doesn't match you can actual have it be blank or plugin a text statement if you want.

 

Share this post


Link to post
Share on other sites


Darth Biscuit    12,581

what you are asking for seems like a very basic IF formula. 

 

 

=IF(A1=XX, Average(D1:D4),0).  you can set XX to be another cell and then type in the sequential value you are looking for.  this formula would show either the average you want or a zero, based on the lookup of XX

 

If you don't want the cell to be a o if it doesn't match you can actual have it be blank or plugin a text statement if you want.

 

I think you are correct except that I want it to automatically find the rows it needs in D.

Share this post


Link to post
Share on other sites
logic1977    237

Should be able to just nest the IF statement. So basically you need some kind of logic for it to know which rows to average in d. But that kind of function is doable

Share this post


Link to post
Share on other sites

×