PC Review


Reply
Thread Tools Rate Thread

comparing more then one column with numbers and letters

 
 
CherylK
Guest
Posts: n/a
 
      20th Apr 2010
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?



 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      21st Apr 2010
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?
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I change column numbers back to column letters? =?Utf-8?B?U3BhY2UgRWxm?= Microsoft Excel Worksheet Functions 3 2nd Mar 2006 09:35 PM
Covert Column Numbers to Column Letters in Excel VB =?Utf-8?B?S2VpdGg=?= Microsoft Excel Programming 12 17th Mar 2005 10:21 PM
Column numbers to letters Martha Microsoft Excel Misc 3 20th Aug 2004 07:19 PM
Re: column numbers instead of letters Dave Peterson Microsoft Excel Setup 0 9th Aug 2003 04:36 AM
Re: Comparing numbers and matching it to letters in a col Myrna Larson Microsoft Excel Worksheet Functions 0 7th Aug 2003 09:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:13 AM.