PC Review


Reply
Thread Tools Rate Thread

Cells not adjusting to new Column

 
 
bethe
Guest
Posts: n/a
 
      15th Jan 2010
Currently, I have the following formula in Column J of the audit sheet:
=IF((upload!J2-control!J2=0)," ",(upload!J2-control!J2)

If I insert a column in the audit sheet, the formula in Column J is now in
Column K, but the formula stays the same.
=IF((upload!J2-control!J2=0)," ",(upload!J2-control!J2)

I would want the formula to adjust to:
=IF((upload!K2-control!K2=0)," ",(upload!K2-control!K2)

All three sheets (audit, upload, and control) are in the same workbook.
Is there a way to make the formulas adjust automatically when a column is
deleted or inserted?
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      15th Jan 2010
To clarify, even though the data in upload and control sheet isn't moving,
you want the formula on the audit sheet to change?

Then, something like this (assuming the formula is currently in column J)


=IF(INDIRECT("upload!"&ADDRESS(2,COLUMN(J2)))-INDIRECT("control!"&ADDRESS(2,COLUMN(J2)))=0,"",INDIRECT("upload!"&ADDRESS(2,COLUMN(J2)))-INDIRECT("control!"&ADDRESS(2,COLUMN(J2))))

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"bethe" wrote:

> Currently, I have the following formula in Column J of the audit sheet:
> =IF((upload!J2-control!J2=0)," ",(upload!J2-control!J2)
>
> If I insert a column in the audit sheet, the formula in Column J is now in
> Column K, but the formula stays the same.
> =IF((upload!J2-control!J2=0)," ",(upload!J2-control!J2)
>
> I would want the formula to adjust to:
> =IF((upload!K2-control!K2=0)," ",(upload!K2-control!K2)
>
> All three sheets (audit, upload, and control) are in the same workbook.
> Is there a way to make the formulas adjust automatically when a column is
> deleted or inserted?

 
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
Adjusting Column Size carol Microsoft Excel Misc 4 17th Jul 2008 06:45 PM
Adjusting column width George A. Yorks Microsoft Excel Misc 0 20th Jul 2004 05:12 PM
adjusting column distances D.P. Roberts Windows XP General 0 24th Mar 2004 11:39 PM
Formula not adjusting to correct cells Mike Microsoft Excel Worksheet Functions 2 31st Jul 2003 07:45 PM
adjusting the range of cells in macro CJ Microsoft Excel Worksheet Functions 0 29th Jul 2003 11:44 PM


Features
 

Advertising
 

Newsgroups
 


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