Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tiq tiq is offline
external usenet poster
 
Posts: 6
Default After sorting the formula has the incorrect cell

I am using the following
=SUMIF(Taken!A$1:A$1999,Accrual!C6,Taken!D$1:D$199 9). When I do a sort on
the data the Accrual!C6 remains cell C6 but it should be C10 because I added
information and then sorted and the formula is now on line 10.

Can anybody help??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default After sorting the formula has the incorrect cell

Solution #1
Place the formula of C6 into the SUMIF() formula.
If, for example, C6 contains
=E1*F1 then the modified formula becomes:
=SUMIF(A1:A1999,E1*F1,D1:D1999)
Solution #2
Give C6 a name, say Tag, and type it into B6.
Select B6:C6 and
Insert Name Create Left column
The modified formula becomes:
=SUMIF(A1:A1999,Tag,D1:D1999)
After sorting column B and C together, Tag will be in another row,
but adjacent to the formula =E1*F1.
Rename the formula as above.
Solution #3
If you want to get away from renaming Tag after each sort, do this:
Insert Name Define Names in workbook Tag
Refers To: =VLOOKUP("Tag",B1:C1999,2,0)
The SUMIF() formula stays the same as in #2

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


All times are GMT +1. The time now is 02:03 AM.

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

About Us

"It's about Microsoft Excel"