Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jesmin
 
Posts: n/a
Default Formula is not working


Hi The New bee.
I have data like:
A------B-----C----D-----E----F------G H I
1990--1-----------3-------6---------8
1991--1-----------9-------2---------7
1992--2-----------5-------7---------1

Col C will have data diff(G1990-B1991).That means for previous year.
I was trying:
range("c2:c3").formular1c1 = "=RC[4].offset(-1,0) - RC[-1]"
--Not working,Having application error

I will try the following way. But its too long. I need to use a range
and a formula(if possible).
cell(2,3).value = cell(2,3).offset(-1,3).value -
cell(2,3).offset(0,-1).value
cell(3,3).value = cell(3,3).offset(-1,3).value -
cell(3,3).offset(0,-1).value
Thanks in advance
Jesmin


--
jesmin
------------------------------------------------------------------------
jesmin's Profile: http://www.excelforum.com/member.php...o&userid=29540
View this thread: http://www.excelforum.com/showthread...hreadid=492400

  #2   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default Formula is not working

Are you saying you want this in C something?

=G1990-B1991

"jesmin" wrote in
message ...

Hi The New bee.
I have data like:
A------B-----C----D-----E----F------G H I
1990--1-----------3-------6---------8
1991--1-----------9-------2---------7
1992--2-----------5-------7---------1

Col C will have data diff(G1990-B1991).That means for previous year.
I was trying:
range("c2:c3").formular1c1 = "=RC[4].offset(-1,0) - RC[-1]"
--Not working,Having application error

I will try the following way. But its too long. I need to use a range
and a formula(if possible).
cell(2,3).value = cell(2,3).offset(-1,3).value -
cell(2,3).offset(0,-1).value
cell(3,3).value = cell(3,3).offset(-1,3).value -
cell(3,3).offset(0,-1).value
Thanks in advance
Jesmin


--
jesmin
------------------------------------------------------------------------
jesmin's Profile:
http://www.excelforum.com/member.php...o&userid=29540
View this thread: http://www.excelforum.com/showthread...hreadid=492400



  #3   Report Post  
Posted to microsoft.public.excel.misc
jesmin
 
Posts: n/a
Default Formula is not working


Hi: I want to deduct the data in col. B from data in col. G and then put
the deducted result in col C. But col B data of 1991 will be deducted
from col G data of 1990. For example:

cell(2,3).value
= cell(2,3).offset(-1,4).value - cell(2,3).offset(0,-1).value
A------B-----C----D-----E----F------G H I
1990--1----------3----------6-------8
1991--1----------9----------2-------7
1992--2----------5----------7-------1

I want to do it with a range and formula. Something like:
range("c2:c3").formular1c1 = "=RC[4].offset(-1,0) - RC[-1]"
Thanks


--
jesmin
------------------------------------------------------------------------
jesmin's Profile: http://www.excelforum.com/member.php...o&userid=29540
View this thread: http://www.excelforum.com/showthread...hreadid=492400

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
Formula to find the working days difference between to dates? Mudgeman Excel Discussion (Misc queries) 2 May 15th 06 05:26 AM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 11:24 PM
Looking for a working production formula so I can add to staff? JJL Excel Discussion (Misc queries) 0 March 11th 05 05:11 PM
Formula entered not working Thrava Excel Discussion (Misc queries) 5 March 6th 05 10:18 PM
Formula not working Carl Hilton Excel Worksheet Functions 13 January 9th 05 07:55 PM


All times are GMT +1. The time now is 04:44 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"