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
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
Umm... I am not sure if this is what you are looking for...
Take a look
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.
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 iconbelow the post.
Yes, of course. I send the same Excel sheet with more values in column G
Last edited by MalgosiaMen; 03-14-2014 at 04:53 PM. Reason: wrong attached file
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
Yes,I am sorry, it is my mistake. Please get the uploaded *xls. I have sent it once again
I send the right Excel sheet once again. Please for help.
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.
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.
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.
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.
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.
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.
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:
=ROUND(INDEX(C:C,MATCH(ROUND(E1,3),ROUND(A:A,3),FALSE),1),3)
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
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
As Richard pointed out, some if the values aren't identical.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks