Minimorgie
Technical User
Hi,
I have columns of financial data and I need to search for a cost code / value combination and where certain conditions are met I need to carry out a replace. Here's some sample data :
cost centre cost account Period Balance date
1002111 1100 186000.00 19/12/2007
1002111 1110 272372.66 19/12/2007
1002111 1120 4030.31 19/12/2007
1002111 1180 3133.33 19/12/2007
1002111 1185 775.50 19/12/2007
1002111 1220 368.00 19/12/2007
1002111 1510 -176000.00 19/12/2007
Where certain cost accounts appear and the period balance is a negative I need to replace the minus sign. I've written the following if statement to identify the correct cost accounts and where the value is < 0 but I don't know how to then replace the minus sign.
=IF(AND(C7<0,(OR(B7="1510",B7="1530",B7="1305",B7="1515",B7="1540",B7="1550"))),"true")
Any help would be very much appreciated.
Thanks
Minimorgie
I have columns of financial data and I need to search for a cost code / value combination and where certain conditions are met I need to carry out a replace. Here's some sample data :
cost centre cost account Period Balance date
1002111 1100 186000.00 19/12/2007
1002111 1110 272372.66 19/12/2007
1002111 1120 4030.31 19/12/2007
1002111 1180 3133.33 19/12/2007
1002111 1185 775.50 19/12/2007
1002111 1220 368.00 19/12/2007
1002111 1510 -176000.00 19/12/2007
Where certain cost accounts appear and the period balance is a negative I need to replace the minus sign. I've written the following if statement to identify the correct cost accounts and where the value is < 0 but I don't know how to then replace the minus sign.
=IF(AND(C7<0,(OR(B7="1510",B7="1530",B7="1305",B7="1515",B7="1540",B7="1550"))),"true")
Any help would be very much appreciated.
Thanks
Minimorgie