Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default 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.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default 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.


.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to find difference in cell locations James Excel Discussion (Misc queries) 2 December 31st 09 04:00 PM
Add cells based on critera Needs help[_2_] Excel Discussion (Misc queries) 3 November 1st 07 08:02 PM
Try to find the difference by percentage between 2 cell totals chedd via OfficeKB.com New Users to Excel 1 June 8th 06 09:40 AM
change font color of cell based on critera amrezzat Excel Worksheet Functions 1 November 20th 05 03:54 PM


All times are GMT +1. The time now is 12:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"