+ Reply to Thread
Results 1 to 18 of 18

assigning appropriate values to the points

  1. #1
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    assigning appropriate values to the points

    Hello,
    could you please help me to solve the following problem:
    I would like to copy data from column C to G if (A=E) and (B=F).

    Thank you in advance.
    Regards,
    Malgosia
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-30-2011
    Location
    Toronto
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: assigning appropriate values to the points

    Umm... I am not sure if this is what you are looking for...

    Take a look
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    Actually no, because I wouldlike to have all values from column C in column G, but assigning to the appropriate points, so f.eg. the G1 cell should have value -1,221
    Last edited by MalgosiaMen; 03-14-2014 at 04:41 PM.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning appropriate values to the points

    So how are you calculating -1221.

    Let us have other examples too so that we can check.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    Yes, of course. I send the same Excel sheet with more values in column G
    Attached Files Attached Files
    Last edited by MalgosiaMen; 03-14-2014 at 04:53 PM. Reason: wrong attached file

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: assigning appropriate values to the points

    I think you sent exactly the same sheet.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    Yes,I am sorry, it is my mistake. Please get the uploaded *xls. I have sent it once again

  8. #8
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    I send the right Excel sheet once again. Please for help.
    Attached Files Attached Files

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning appropriate values to the points

    Hi,

    OK I can see that your -1.221 in G1 is an average of itself, i.e. G1, and is therefore circular. But it's not clear where the requirements of your first post fit in. i,e. the restriction on B=F & A=E. There are no rows where this condition is met.

    Perhaps it would help if you'd describe in narrative form what you are wanting to do.

  10. #10
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    Please have at look at the attached file today and take these data as the right ones.
    Yesterday I sent false Excel sheet.
    My aim is still the same- I want to copy data from column C, but assigning them to the appropriate points, which means if the condition A=E and B=F is met.

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning appropriate values to the points

    I did look at your latest sheet today and I repeat, I still don't understand

    Tell me how you calculate G1 as -1.221. It's referring to itself and therefore being circular makes no sense. In fact if you hit the F2 key to edit it and immediately hit the Enter key you'll find it evaluates to zero.

    Manually add some sample results that you expect to see - don't use any formulae, tell us which are the results cells and importantly describe in a narrative how you calculated them.

  12. #12
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    You are right, some cells contain formulas. This is caused by not avoiding them while copying from another Excel sheet. The formulas should have been deleted. In all columns should have been only values.
    I send the corrected Excel sheet once again.
    Attached Files Attached Files

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning appropriate values to the points

    Hi,

    You've still not explained how you are calculating the values in column G. You need to explain which other cells you are adding/averaging/deducting or whatever in order to produce the results of -1.221, 1.666 etc.

    Your original post mentioned conditions to do with A=E & B=F but I can see no relationships anywhere which would provide the results you show.

    Is it just co-incidence that the average of C1 & C2 is 1.221509.. i.e. similar to G1 but positive rather than the negative you show.

  14. #14
    Registered User
    Join Date
    12-09-2012
    Location
    Warsaw
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    44

    Re: assigning appropriate values to the points

    I do not know how to explain it clearer. Values in columns A, B and C are not calculated. These are the so called "input data".
    Values in columns E and F are the same as in A and B but in different order.
    The problem is to get values from column C to G and assign them to appropriate points.

    Please let me have some time and I will try to write a macro. Maybe it will help to solve this problem.

  15. #15
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: assigning appropriate values to the points

    Why not just sort the data so it aligns?

    A
    B
    C
    D
    E
    F
    G
    1
    Data 11
    Data 12
    Data 13
    Data 21
    Data 22
    Data 23
    2
    449791.408
    262929.962
    0.461
    449791.408
    262929.962
    3
    449792.887
    262919.977
    0.197
    449792.887
    262919.977
    4
    449796.407
    262934.395
    2.779
    449796.407
    262934.395
    5
    449796.463
    262913.572
    0.955
    449796.463
    262913.572
    6
    449797.416
    262907.148
    0.592
    449797.416
    262907.148
    7
    449800.086
    262900.873
    0.032
    449800.086
    262900.873
    8
    449803.239
    262896.652
    0.565
    449803.239
    262896.652
    9
    449803.348
    262938.122
    1.763
    449803.348
    262938.122
    1.763
    10
    449805.748
    262892.256
    0.797
    449805.748
    262892.256
    11
    449807.679
    262886.091
    0.248
    449807.679
    262886.091
    12
    449809.824
    262879.783
    0.742
    449809.824
    262879.783
    13
    449810.971
    262941.332
    0.590
    449810.971
    262941.332
    14
    449811.690
    262875.206
    0.807
    449811.690
    262875.206
    Entia non sunt multiplicanda sine necessitate

  16. #16
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: assigning appropriate values to the points

    Hi,

    You understand precisely the data you're working with. Remember we come to this cold. The important new clue for me is that the numbers are to be compared with any number in the relevant column and not with numbers on the row.

    The following needs to be an array formula since some of your decimals, although they look to be the same, are not EXACTLY the same in Excel precision arithmetic terms. i.e. the calculation engine sees them varying at a very low decimal value. So enter this formula with Ctrl Shift Enter so that the in built ROUND() function will ignore extreme decimals.
    So in G1 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: assigning appropriate values to the points

    Try:
    =SUMPRODUCT(($A$1:$A$60=E1)*($B$1:$B$60=F1)*$C$1:$C$60)
    Or
    =LOOKUP(2,1/(($A$1:$A$60=E1)*($B$1:$B$60=F1)),$C$1:$C$60)
    Quang PT

  18. #18
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: assigning appropriate values to the points

    As Richard pointed out, some if the values aren't identical.

+ 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. Assigning points values to data to set performance rankings...
    By stateofstatic in forum Excel General
    Replies: 3
    Last Post: 01-28-2012, 09:23 PM
  2. Assigning values to data points
    By charmandering in forum Excel General
    Replies: 4
    Last Post: 03-23-2010, 09:34 PM
  3. Formula for assigning points for incremental values
    By mashley in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2008, 01:52 PM
  4. Assigning a points scoring system
    By zelus in forum Excel General
    Replies: 2
    Last Post: 05-17-2006, 10:07 PM
  5. assigning points to rankings
    By Nan-C in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-15-2006, 03:10 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