Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Making a Value in One Column Negative Based on Value in Another Co

Hello:

In an Excel 2003 spreadsheet, I have string fields in column C and in column
F. In column G, I have numeric fields.

Column C is the concatenation of columns A and B. Column F is the
concatenation of columns D and E.

I need a formula that will make values in column G negative where the values
in column C match the values in column F.

Let me see if can give an example.

In column C and row 2, you have the string value 10600357778035. This value
is ALSO in column F in row 181 and the corresponding numeric value in column
G in row 181 is "32". So, G181 needs to show -32.

Now, the values in column C in some cases may be in column F multiple times.
But, the point is that if column C is in column F, I want each corresponding
value in column G to be negative instead of positive. How do I do this? Is
there a formula that can do this without the use of VBA?

childofthe1980s
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 122
Default Making a Value in One Column Negative Based on Value in Another Co

I think that I just figured this out. I'm doing it a different way.

I put a column in between C and E to house the following formula:

=IF(ISERROR(MATCH(G2, $C$2:$C$258,0)),"new","match ")

This will place "match" for every match and "new" for everyone that does not
match.

Then, I will place columns D through I into a new spreadsheet and sort by
this column. I will delete the "new"s and make negative amounts for the
"match"s. That looks like that will work. If you have a different opinion,
please let me know.

"childofthe1980s" wrote:

Hello:

In an Excel 2003 spreadsheet, I have string fields in column C and in column
F. In column G, I have numeric fields.

Column C is the concatenation of columns A and B. Column F is the
concatenation of columns D and E.

I need a formula that will make values in column G negative where the values
in column C match the values in column F.

Let me see if can give an example.

In column C and row 2, you have the string value 10600357778035. This value
is ALSO in column F in row 181 and the corresponding numeric value in column
G in row 181 is "32". So, G181 needs to show -32.

Now, the values in column C in some cases may be in column F multiple times.
But, the point is that if column C is in column F, I want each corresponding
value in column G to be negative instead of positive. How do I do this? Is
there a formula that can do this without the use of VBA?

childofthe1980s

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
making a # value positive or negative based on contents of another adam Excel Worksheet Functions 3 October 29th 07 08:13 PM
making a new column based on data in an existing column newyorkjoy Excel Discussion (Misc queries) 4 August 2nd 07 02:42 AM
making all the figures in one column appear as a negative judgejulz Excel Discussion (Misc queries) 4 December 19th 06 03:21 PM
Help making Negative numbers to become zero jrabs12 Excel Worksheet Functions 14 August 8th 06 09:00 AM
Making Negative Results Default to Zero jcoleman52 Excel Discussion (Misc queries) 1 December 22nd 05 02:54 PM


All times are GMT +1. The time now is 07:15 AM.

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"