+ Reply to Thread
Results 1 to 20 of 20

how to solve a problem in exel?

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    how to solve a problem in exel?

    Hi,
    How to automatically get the results for the column "number of movements of passenger cars in a good hour"?
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: how to solve a problem in exel?

    It's not clear to me exactly what you are trying to do, and the picture does not allow for any exploration of the data. Perhaps a better explanation with an actual spreadsheet file uploaded to the forum would help us understand better.

    If I had to guess, it looks to me like this will end up being a pivot table operation or a SUMIFS() function or something similar. Are you familiar with these tools in Excel?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    Maybe these tables in exel will help you
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: how to solve a problem in exel?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will do it for you this time: https://www.mrexcel.com/board/thread...-exel.1193277/)

    This thread has been tagged as solved - is it?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    The first time I'm on the forum I haven't used it so far, everything is right what you wrote.
    I am asking for help with my task and I did not pay attention to the rules of the site. Believe me, it was not my intention to break the rules. Sorry for the grammatical errors

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,908

    Re: how to solve a problem in exel?

    I have removed the solved tag for you.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: how to solve a problem in exel?

    Since no one seems to have responded over at mrexcel, I will venture this response. I'm still not sure I understand what you are trying to do or what logic you intend to use, but I notice that =SUMIFS(C2:C133,B2:B133,"*"&A2&"*") in to je tacno2.xlsx sheet2 returns 613.8. je tacno 1.2.xlsx suggests that you want the result to be 3*175+88 which is 613 -- essentially the same as the SUMIFS() but ignoring the hidden decimals in the original data.

    As I said, this feels to me like a SUMIFS() or pivot table kind of problem. If you can help us understand the exact logic you are using to decide which values to sum, we should be able to help you program the conditional summation(s) into Excel.

  8. #8
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    I hope this gif file will help you better understand how to automatically calculate this table
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    And so I should do the whole table
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-19-2022
    Location
    Alaska, USA
    MS-Off Ver
    2013
    Posts
    14

    Re: how to solve a problem in exel?

    Quote Originally Posted by MrShorty View Post
    It's not clear to me exactly what you are trying to do, and the picture does not allow for any exploration of the data. Perhaps a better explanation with an actual spreadsheet file uploaded to the forum would help us understand better.

    If I had to guess, it looks to me like this will end up being a pivot table operation or a SUMIFS() function or something similar. Are you familiar with these tools in Excel?
    follow these steps please.

    1- In Excel 2016 for Mac: Click Data > Solver.
    2- After you define a problem, in the Solver Parameters dialog box, click Options.
    3- Select the Show Iteration Results check box to see the values of each trial solution, and then click OK.
    4- In the Solver Parameters dialog box, click Solve.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: how to solve a problem in exel?

    As expected, your gifs seem show a conditional sum problem (unless I am completely misunderstanding and you really want a conditional text concatenate operation, which would probably be best handled by a TEXTJOIN() function if you have access to it).

    But the thing I am really not understanding is the logic of how you choose what to sum or concatenate. The gifs show you adding/concatenating values from column B where column A contains the desired text. But, looking through the results in to je tacno 1.2.xlsx, I see cases where you did not sum/concatenate every entry. For example, the "e-I" case shows only 175, but when I look through the list in je tacno 2.xlsx I see three entries -- 175+17+0. Why did you not include these other two entries in the sum/concatenate?

  12. #12
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    In the end all these values ​​should be summed up as shown in the photo
    Attached Images Attached Images

  13. #13
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    From table to je tacno 2 first see the data (6-đ) it has a value of 37.
    Then in the second table to je tacno 1.2 search (6-đ) and assign a value in column B,
    Next from table tacno 2 we see the data (đ-z) it has the value 37, then in the second table to je tacno 1.2 it is searched (đ-z) and the value is assigned in B column 37

  14. #14
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    This is how it should be done in exel
    Attached Images Attached Images

  15. #15
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: how to solve a problem in exel?

    It still feels like a SUMIFS() function. Other than I didn't include absolute referencing, does the SUMIFS() function I proposed in post #7 work correctly? What does it need to do differently?

    You indicate that the result for 6-đ should be 37. When I search to je tacno 2.xlsx Sheet2, I see that 6-đ is included in rows 11, 31, 49, 65, 79, 92, 94, and 96. Only row 31 contains the value of 37. Why choose only row 31 and not include the values from the other rows containing 6-đ?
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    In file to je tacno 2 under Sheet2 all places are located where (6-đ) and it is in rows 10 where value 148 is in rows 30 value is 37 in rows is 48 value is 7 in rows 64 value is 15 in rows 78 value is 111 in rows 91 value is 37 in rows 93 value is 22 in rows 95 value is 22.
    All values ​​are summed 148 + 37 + 7 + 15 + 111 + 37 + 22 + 22 = 399
    This value 399 is inserted in file to je tacno 1.2 is required (6-đ) and 399 is entered next to it
    Attached Images Attached Images

  17. #17
    Registered User
    Join Date
    01-19-2022
    Location
    serbia
    MS-Off Ver
    2016
    Posts
    10

    Re: how to solve a problem in exel?

    And so for all other combinations (n-h) (h-n) (h-c) ....

    The photo shows that it was done (6-đ)
    Attached Images Attached Images

  18. #18
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: how to solve a problem in exel?

    I had forgotten that I had added a header row so I could use a filter to find entries, so my row numbers are 1 larger than your row number. But it looks like the proposed SUMIFS() is correct. Here it is again, adding absolute external references for easy copying (entered in B1 of to je tacno 1.2.xlsx sheet1):

    =SUMIFS(['to je tacno 2.xlsx]Sheet2'!$C$10:$C$134,['to je tacno 2.xlsx]Sheet2'!$B$10:$B$134,A1) note the mix of relative and absolute references for easy copying, then copy/paste/fill to the bottom of the list.

  19. #19
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: how to solve a problem in exel?

    Rule 03: Cross-posting Without Telling Us Again!

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future or risk punitive measures If you have posted at any other sites, please add them to your post and advise us

    https://www.msofficeforums.com/excel...blem-exel.html
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  20. #20
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: how to solve a problem in exel?

    Quote Originally Posted by Victoriaviolet View Post
    follow these steps please.

    1- In Excel 2016 for Mac: Click Data > Solver.
    2- After you define a problem, in the Solver Parameters dialog box, click Options.
    3- Select the Show Iteration Results check box to see the values of each trial solution, and then click OK.
    4- In the Solver Parameters dialog box, click Solve.
    @Victoriaviolet Your post is in no way related to the question. Repeated instances will result in infractions or a ban.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. graph problem in exel 2002
    By anon125 in forum Excel General
    Replies: 2
    Last Post: 01-11-2022, 02:14 PM
  2. Problem converting from sheets to exel
    By insertname21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2019, 02:13 PM
  3. pls help me to solve this problem
    By nellairaghu in forum Excel General
    Replies: 1
    Last Post: 05-03-2016, 02:15 AM
  4. Replies: 2
    Last Post: 04-23-2013, 08:59 AM
  5. [SOLVED] Exel formula problem
    By ashdown in forum Excel General
    Replies: 1
    Last Post: 06-14-2012, 12:05 PM
  6. Excel 2007 : Exel problem
    By Jackass66 in forum Excel General
    Replies: 7
    Last Post: 04-23-2009, 08:43 AM
  7. Can someone solve a problem for me?
    By Jon Parker in forum Excel General
    Replies: 1
    Last Post: 04-25-2005, 07:06 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