+ Reply to Thread
Results 1 to 12 of 12

its complicated to explain see the tables i made :)

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    its complicated to explain see the tables i made :)

    hi!my problem is that i have lets say 3 columns for example like these.
    61 250 7890
    62 450 7890
    63 300 7890
    65 690 7769
    69 480 7769
    85 900 6922

    i would like to make a column where if the value in the third column is the same with some other in the same column will bring me the sum of column 2 and another column that will bring the value of column a which had the bigger value in column 2.for example like this

    62 1000 7890
    65 1170 7769
    85 900 6922

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: its complicated to explain see the tables i made :)

    Is the 3rd column sorted or not?
    Quang PT

  3. #3
    Registered User
    Join Date
    04-20-2013
    Location
    greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: its complicated to explain see the tables i made :)

    it is sorted

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: its complicated to explain see the tables i made :)

    The answer is in file
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Registered User
    Join Date
    04-20-2013
    Location
    greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: its complicated to explain see the tables i made :)

    thk u but i see it brings 61 where is should bring 62 because this is the one that had the bigger value in column b for 7890

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: its complicated to explain see the tables i made :)

    Quote Originally Posted by stratos2121 View Post
    thk u but i see it brings 61 where is should bring 62 because this is the one that had the bigger value in column b for 7890
    Ok, i didnt know the reson of 62 thus it was wrong. Enter the array formula below to g2 cell in my file
    =IFERROR(INDEX($A$2:$A$7,MATCH(MAX(IF($C$2:$C$7=I2,$B$2:$B$7,"")),IF($C$2:$C$7=I2,$B$2:$B$7,""),0)),"")

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: its complicated to explain see the tables i made :)

    do you mean Max - as you have shown Min here
    62 1000 7890
    65 1170 7769
    85 900 6922

    69 is max

    see attached sheet for the result in Columns E,F & G
    Attached Files Attached Files
    Last edited by etaf; 04-20-2013 at 12:06 PM.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: its complicated to explain see the tables i made :)

    See the file attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-20-2013
    Location
    greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: its complicated to explain see the tables i made :)

    column a is not a number but a code of a customer.so i want to bring in the new column the code of the costumer that had the bigger value from column b and has the same code in column c if you get it..the two other columns are correct what you did.

  10. #10
    Registered User
    Join Date
    04-20-2013
    Location
    greece
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: its complicated to explain see the tables i made :)

    i decided to stick with the solution by bebo.thk u very much all for your answers.but i have a problem to do it for more cells although i change the ranges...i hope i manage sometime tonight to do it right...

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: its complicated to explain see the tables i made :)

    Nice to hear it works with your sample.
    However, note that it is array formula, after changing your range, do not remember to confirm by hitting Ctrl-Shift-Enter key combination rather than Enter only.

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: its complicated to explain see the tables i made :)

    stratos,

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem. Once you have done this please send me a PM and I will remove this request.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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