![]() |
Find difference between 2 cells if critera in a 3rd cell is met
How would I find the difference between two cells depending on what is in a
third cell? For example, in column G1 I want to show the difference E1 and whichever cell in column F contains the number 1. I was thinking something along the lines of using SUMPRODUCT to find the row with the #1 and then somehow subtracting G1 from the number column E that match the row where the number 1 was found. |
Find difference between 2 cells if critera in a 3rd cell is met
This is VERY confusing! At least, to me it is.
There's probably a simple solution but I don't understand. You want the formula in cell G1? This is the really confusing part: I want to show the difference E1 and whichever cell in column F contains the number 1. The literal interpretation of that is to simply subtract 1 from E1 but I'm sure that's not what you want. -- Biff Microsoft Excel MVP "Eric E" wrote in message ... How would I find the difference between two cells depending on what is in a third cell? For example, in column G1 I want to show the difference E1 and whichever cell in column F contains the number 1. I was thinking something along the lines of using SUMPRODUCT to find the row with the #1 and then somehow subtracting G1 from the number column E that match the row where the number 1 was found. |
Find difference between 2 cells if critera in a 3rd cell is met
So, if you have a 1 in F6, for example, you want E1-E6 in G1?
If so, try this: =E1-INDEX(E$2:E$100,MATCH(1,F$2:F$100,0)) Hope this helps. Pete On Feb 25, 6:37*pm, Eric E wrote: How would I find the difference between two cells depending on what is in a third cell? For example, in column G1 I want to show the difference E1 and whichever cell in column F contains the number 1. I was thinking something along the lines of using SUMPRODUCT to find the row with the #1 and then somehow subtracting G1 from the number column E that match the row where the number 1 was found. |
Find difference between 2 cells if critera in a 3rd cell is me
Pete_UK, Yes that is it. Thank you very much for your assistance. Sorry for
not being clearer in my original post. "Pete_UK" wrote: So, if you have a 1 in F6, for example, you want E1-E6 in G1? If so, try this: =E1-INDEX(E$2:E$100,MATCH(1,F$2:F$100,0)) Hope this helps. Pete On Feb 25, 6:37 pm, Eric E wrote: How would I find the difference between two cells depending on what is in a third cell? For example, in column G1 I want to show the difference E1 and whichever cell in column F contains the number 1. I was thinking something along the lines of using SUMPRODUCT to find the row with the #1 and then somehow subtracting G1 from the number column E that match the row where the number 1 was found. . |
All times are GMT +1. The time now is 04:43 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com