View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Aukerman[_2_] David Aukerman[_2_] is offline
external usenet poster
 
Posts: 14
Default Excel 2007: complex COUNTIFS()

I am trying to do a COUNTIFS() function in which I need to compare the
difference between two numeric cells in the same row. In my spreadsheet,
column G and column H contain year values (stored as integers). One of the
criteria in my COUNTIFS() needs to check the difference between adjacent
cells in these columns, for example, if H4-G4 = 5 or if H100-G100 = 10. I
know the "easy" way would be to create a new column containing the
differences, but I need to avoid that shortcut. Any ideas?