+ Reply to Thread
Results 1 to 24 of 24

SUMIF Function, peoblems autofill reversing

  1. #1
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Question SUMIF Function, peoblems autofill reversing

    Hey,
    sry i didn't know how to describe the problem better than this. I'll try in the text.

    I have to do a sheet for my University. I'm using the SUMIF function to lookup certain names and the times they were there and how long. So my area are the names, my searching field is a certain name on a list and the area calculated are the hours behind the names in another list were the names are listed randomly.

    so it looks something like this SUMIF[Doc1]sheet!DRD$4:DRD$400;$A2;[Doc1]sheet!DRE$4:DRE$400

    This is working fine as long as im just pulling it down and the $A2 is the only thing changing. Problem is once i start pulling to the right it messes everything up and i dont know why. What i need is every fourth column ( like DQR-->DQV-->DQZ), but hwat happens when i pull it to the right (even when i give Excel like 3 handmade rows) is something like this: I stop with DQV-->DQZ and then Excel starts with DQX and after that always making 4 steps. Or it goes back 4 letters or some other bs like that.

    I tried remaking the whole thing. I searched google (even though i honestly have to say i didnt really know what to search for). And i searched various other sides.

    Every help is appreciated, sry for my sometimes bad English im a German trying to learn english right now

    thx all of you and have a nice day

    Joel

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: SUMIF Function, peoblems autofill reversing

    You appear to be missing a few dollar signs is all;


    SUMIF[Doc1]sheet!$DRD$4:$DRD$400;$A2;[Doc1]sheet!$DRE$4:$DRE$400
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Update: I just tried it with a really simplified form one Excel sheet. And still i cant get it to work... but the error changed a little bit. Well basically the error stayed the same. What it does now is: What i gave him was A$1:A$3 and the next one C$1:C$3. If i pull htat to the right it gives me C$1:C$3 again and after that E... but then E again so it basically doubles everything even though I've never done that. I'm confused.

  4. #4
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Well if im adding the $ signs were you did then the whole thing is absolut and nothing will ever change if im not mistaken. But i need it to change so i get the different values from the different days. But i will try, thx for the reply Speshul

  5. #5
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Quote Originally Posted by Speshul View Post
    You appear to be missing a few dollar signs is all;


    SUMIF[Doc1]sheet!$DRD$4:$DRD$400;$A2;[Doc1]sheet!$DRE$4:$DRE$400
    Ok so I tried this and what happens is that im getting the same values over and over again.
    Example of what happens (think because its an absolut then) :
    SUMIF[Doc1]sheet!$DRD$4:$DRD$400;$A2;[Doc1]sheet!$DRE$4:$DRE$400
    SUMIF[Doc1]sheet!$DRH$4:$DRH$400;$A2;[Doc1]sheet!$DRI$$:$DRI$400

    so this is how it looks like and if I start pulling that so that Excel is counting for me it just goes DRD-->DRH-->DRD and so on.

    Do you really understand what I want to do? I dont know if you can understand everything i wrote (as i said still learning English) If you have any questions just asked im happy to answer
    Last edited by JoelPak; 03-08-2016 at 05:18 PM.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    In post #3 you indicate that you have a simple spreadsheet that you use for testing. You could probably get more, and quicker, help if you could use the "Go Advanced" button, below the "Quick Reply" window and upload the spreadsheet.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Alright i uploaded the simplified File. Its very simplified though and the error im getting there is a little bit different from the other error. But its the same in the way that excel is not counting right or im doing something wrong(Its probably me :D )

    thx Joel
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    It appears that this is more of a lookup than a sum, i.e. B8 = find the name John in the first column, find the value corresponding to John in the second column, report that value. Am I correct in thinking that you just need to get the numeric values to match the names? This is not going to be a final answer however thinking about random arrangement of names and skipping columns it seems an array formula (activated with the simultaneous key strokes Ctrl, Shift and Enter) like the following is close:
    Please Login or Register  to view this content.
    Here is a pared down copy of your file with the formula applied: Copy of testingsumif.xlsx
    Let me know if it is closer to what you want.

  9. #9
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Quote Originally Posted by JeteMc View Post
    Am I correct in thinking that you just need to get the numeric values to match the names?
    Yes you are. First I need the values to match the names in the list. The sum comes later, but i thought it would work with the SUMIF too.
    Ok i just looked at yours and i have some problems getting through what you did there. But it seems to solve my problem. So thank you very very much!!! I'll look at it tomorrow morning first thing and try to understand everything you did there and then if i still have problems I will write here again
    Again thank you very much for your work i really appriciate it

    Joel

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    To get a better understanding select a cell like B9 and from the data tab choose evaluate formula. Keep pushing the evaluate button to see what the formula does to fill in the Address function ranges which the Indirect function passes along to the Index and Match functions. Then select the next cell (C9) to see how the formula increments the columns. That will give you a better background from which to ask questions.

  11. #11
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    This tip with the Evaluate formula is worth gold. I think im starting to get what you did there

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    Great to hear, let us know if you need more help. If/When you are satisfied that the solution resolves the issue in post #1, please take a moment to mark the thread 'Solved' using the thread tools link above your first post in the thread. I hope that you have a good day.

  13. #13
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    I would so love to close this thread down, ut i just cant get it to work. I think i understood pretty much everything you did there and I was able to make a new working test sheet of my own with your formula. Problem is i cant get it to work on the University stuff.
    The first problem i encountered is that its not starting at 0,1 or 2 but at DQR9 and when i try to put that into your formula its not working. Quick example:

    =INDEX(INDIRECT(ADRESS('[Hours]PLAN'!$DQR$9you only got a single number in here but when I'm doing this it gives me an error;'[Hours]PLAN'!$DQR$9))

    I just dont know how to get it to work. If I break your formula down its like you searched for the list of hours then you went into the MATCH(Comparison) got the name you are searching for with the $A8 and then got the list of names. The return is the colum where your number is in and then it returns the Number/Hours which belongs to the name on this specific day.
    Im getting either REF or Value errors. I tried it several times now and i even changed your formula a bit because i wanted to try to get the value for just one column. so I went like INDIRECT($DQS$9:$DQS$384) just to simplify it a bit (chance for less errors :D )

    If my question doesn't make any real sense to oyu and you think i should just try it again just tell me i don't want you to feel like you are doing my work

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    I am not sure that I totally understand, however I can tell you that column DQR is the 3164th column so the address for DQR9 is ADDRESS(9,3164). So if we are still skipping two columns as we pull the formula to the right that would be ADDRESS(9,3164+2*(COLUMN(A1)-1)). Looking at the first post it looks as if you really need to skip 4 columns so that would be ADDRESS(9,3164+4*(COLUMN(A1)-1)) If this doesn't work for you then would it be possible to upload a sample of the actual spreadsheet with the names of the students changed to Student 1, Student 2, Student 3 as I don't think that we need more than 3 rows to get an idea.

  15. #15
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    alright thx a lot I'll try that after Lunch and see if that works for me if not ill make a sheet on how it looks like and upload that.
    Really appreciate your dedication to help me I would be sooo lost without your advice

  16. #16
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Still running into the same problem. If i try to type in just the number 9 it wont let me do it. Like that ADDRESS([Hours]PLAN!9; ..... it will highlight this as black once i press enter. Well i go to Lunch and then do the whole thing over again and see if it is working then.

  17. #17
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Quote Originally Posted by JoelPak View Post
    Still running into the same problem. If i try to type in just the number 9 it wont let me do it. Like that ADDRESS([Hours]PLAN!9; ..... it will highlight this as black once i press enter.
    So does this have something to do where i have to put the reference in?
    To explain it to you. I have one Excel Data where i need to put the hours and names and later do something with these numbers. And i have a second Excel Data on a Server where i get the data from. so where do i put in the [Hours]Plan! ? In front of the 9 like i did is not working for me.
    Last edited by JoelPak; 03-09-2016 at 03:07 PM.

  18. #18
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Alright i got it working when i just put it together on one sheet. Problem is i need to pull the Data for the calculations later on from the server. And once i start with the reference [HOURS]PLAN! i cant get it to work and it won't let me do it. Problem as described above. So i guess that is the last error and once i get rid of these once everything should be fine.
    Thx for all the great help.

  19. #19
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    OK i searched various forums and only found one Syntax =[filename.xls]SheetName!$Column$Row and since i only have row, or column it cant work if im right?

    And you asked for an upload with the example sheet. What im doing is basically what i uploaded in one sheet. Names and their hours randomized on a 384 rows long list (depending on how many are there with some blanks) and on another document a sheet with all the names in a specific order. I need the numbers there to have a better overview and to calculate some things with the numbers i get from the other huge Data file.
    Hope that helps if you need or want an upload just tell me ill do my best by recreating what im working with(its too large to send).
    Last edited by JoelPak; 03-09-2016 at 04:28 PM. Reason: added something

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    If HOURS is the name of the workbook and PLAN is the name of the worksheet then try putting them in that portion of the formula like this
    INDIRECT("[HOURS]PLAN!"&ADDRESS(9,3164+4*(COLUMN(A1)-1))&":"&ADDRESS(384,3164+4*(COLUMN(A1)-1)))

    Let me know if whether or not this works.
    Last edited by JeteMc; 03-09-2016 at 04:48 PM.

  21. #21
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    You are an Excel SUPERHERO I tried it and at first didn't get it to work bur i got a #NV error so i kinda knew my (or your) formula had to be right. So i changed something here and there and worked through it again and now it is showing the right value for the person. Now i just have to get everything right so i can pull it and make it automatic for the rest of the people and days. Thx a lot for your help!!!!!
    Shall i close this Thread or shall i leave it open in case i have another question when i come to pulling it out (don't know how to describe it better hope you understand me).
    THX THX THX

  22. #22
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: SUMIF Function, peoblems autofill reversing

    You can still post to it even after it is marked 'Solved', although if there is a new problem with linking the two workbooks it would be better to open a new thread. Glad that it is working out, hope you have a good rest of the day.

  23. #23
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Alright thx for helping again and yeah you made the rest of my day much better really Glad you could help me out here. Already upvoted you and everything )

  24. #24
    Registered User
    Join Date
    03-08-2016
    Location
    USA
    MS-Off Ver
    2007
    Posts
    22

    Re: SUMIF Function, peoblems autofill reversing

    Ok im running into a new Problem i implemented everything and all my formulas are working. only thing is i cant use the auto fill handle. I have to columns with the formula you provided. And what it needs to do is change from A1 to B1, but what it actually does once i pull two colums together it changes A1 to C1. I tried a lot of different things like adding more rows by hand and then using the auto fill and so on but nothing seems to work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Reversing Rank Function to retrieve Large to Small in Order
    By greykitten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2013, 02:35 PM
  2. Problems reversing a row with INDEX function....
    By wallstreetballa in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 07:49 AM
  3. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  4. Microsoft Function: Need it reversing?
    By dvent in forum Excel General
    Replies: 2
    Last Post: 11-02-2007, 11:28 AM
  5. [SOLVED] Autofill- Reversing Order
    By Earl in forum Excel General
    Replies: 4
    Last Post: 07-31-2006, 05:18 PM
  6. Using the autofill function but increment by certain number in function
    By rishid in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2005, 03:05 PM
  7. Sumif and autofill
    By Grimzby in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 03:05 AM
  8. Autofill Function
    By PGalla06 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2005, 03:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1