A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

comparing more then one column with numbers and letters



 
 
Thread Tools Display Modes
  #1  
Old April 20th, 2010, 11:25 PM posted to microsoft.public.excel.worksheet.functions
CherylK
external usenet poster
 
Posts: 5
Default comparing more then one column with numbers and letters

I have 6 columns and many rows in a spreadsheet i want to create a formula
that looks at two common columns and if the same replace a column with an
amount from another column. Below is sort of an example of what I mean:

column a column b column c column d column e column f
acc50138 ACCCS20-1 6.14 acc50138 acccs20-1 10.00
acc50140 Prevention 31.05 acc50269 RTU 15.00
acc50379 concentrate 5.00 acc50379 concentrate 5.00

so what i need is the formula to look at column a and d if they are the same
then replace column c with the amount of column f. Any suggestions?



  #2  
Old April 21st, 2010, 12:10 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default comparing more then one column with numbers and letters

You can put this in G2:
=IF(A2="","",IF(ISNA(MATCH(A2,D,0)),C2,INDEX(F:F ,MATCH(A2,D,0))))
Copy down to return required results. Then copy col G and overwrite col C
with a paste special as values. Clear col G. You're done in about 10-15 secs.
Inspiring? hit the YES below
--
Max
Singapore
---
"CherylK" wrote:
I have 6 columns and many rows in a spreadsheet i want to create a formula
that looks at two common columns and if the same replace a column with an
amount from another column. Below is sort of an example of what I mean:

column a column b column c column d column e column f
acc50138 ACCCS20-1 6.14 acc50138 acccs20-1 10.00
acc50140 Prevention 31.05 acc50269 RTU 15.00
acc50379 concentrate 5.00 acc50379 concentrate 5.00

so what i need is the formula to look at column a and d if they are the same
then replace column c with the amount of column f. Any suggestions?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.