Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Cells not adjusting to new Column

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Cells not adjusting to new Column

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,"",IN DIRECT("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
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
Adjusting Column Size carol Excel Discussion (Misc queries) 4 July 17th 08 06:45 PM
Automatically Adjusting Row Height in Merged Cells MGC Excel Discussion (Misc queries) 12 October 1st 07 08:19 PM
Fill Formula Not Adjusting Down the Column lost in excel Excel Discussion (Misc queries) 2 July 5th 07 08:05 PM
adjusting column width using keystrokes Lesliec4000 Excel Discussion (Misc queries) 1 May 18th 07 04:07 PM
How copy a range o cells without adjusting formulas? Oliver Excel Discussion (Misc queries) 4 September 3rd 06 12:44 AM


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

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

About Us

"It's about Microsoft Excel"