Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

How to Find the Maximum Value in Specific Rows of a Column in Excel

$
0
0

I have an Excel table with multiple columns, including "story" and "shear X". I need to find the maximum value in the "shear X" column, but only for rows where the "story" column contains "story3".

Here is a sample of my data:

Story Shear Xstory1 10story2 15story3 25story4 20story3 30story2 22story3 35... ...I want to write a formula that identifies the rows containing "story3" and then finds the maximum value in the "shear X" column for those rows.

What I've Tried:

I attempted to use the MAX and IF functions, but I am having trouble getting the correct syntax and making sure it works across the entire dataset.

Here's an example of what I tried:

=MAX(IF(A:A="story3", B:B))

However, this formula doesn't seem to work correctly for me.

Question:

How can I write a formula that correctly identifies rows where the "story" column is "story3" and then finds the maximum value in the "shear X" column for those rows?

Additional Information:

My data starts at row 1."story" values are in column A."shear X" values are in column B.


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>