Archived

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

Anybody on here an Excel guru?

6 posts in this topic

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

Vlookup perhaps

I'm sort of one

Share this post


Link to post
Share on other sites

Posted · Report post

We couldn't figure it out so I had a programmer friend of mine write me a script to process the raw text file.

Share this post


Link to post
Share on other sites