Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default comparing more then one column with numbers and letters

You can put this in G2:
=IF(A2="","",IF(ISNA(MATCH(A2,D:D,0)),C2,INDEX(F:F ,MATCH(A2,D: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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
column headers appear as numbers not letters John Perri Excel Discussion (Misc queries) 1 March 9th 09 03:55 PM
How could my column labels become numbers instead of letters??? ward376 Excel Discussion (Misc queries) 0 June 26th 08 01:53 AM
How can I change column numbers back to column letters? Space Elf Excel Worksheet Functions 3 March 2nd 06 09:35 PM
change column name from letters to numbers? Jerry Excel Discussion (Misc queries) 2 June 28th 05 07:08 PM
row numbers & column letters ALOlson21 Excel Discussion (Misc queries) 3 December 10th 04 05:45 PM


All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"