A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula



 
 
Thread Tools Display Modes
  #1  
Old July 14th, 2004, 05:16 PM
Robert
external usenet poster
 
Posts: n/a
Default Formula

Hello,

If user enters a value greater than zero in a given cell
then the cell is equal to the value in Staff!D2.
The problem I need the Staff!D2 to stay constant when I
drag the formula to other cells. See below:

This what I do when I drag the formula down:
=IF(C130,Staff!D2,"")
=IF(C140,Staff!D3,"")
=IF(C150,Staff!D4,"")
=IF(C160,Staff!D5,"")
=IF(C170,Staff!D6,"")

This is what I want it do:
=IF(C130,Staff!D2,"")
=IF(C140,Staff!D2,"")
=IF(C150,Staff!D2,"")
=IF(C160,Staff!D2,"")
=IF(C170,Staff!D2,"")

I know I can go to each cell and change the Value_if_true
to Staff!D2 but I would have do this for thousands of
cells.

I was just wondering if there is an easier way to have the
Logical_Test change like it is suppose to (ie C13, C14,
etc) but the Value_if_true stay the same (ie Staff!D2).

Or is there way to come back and change all the
Value_if_true to Staff!D2.

Thanks for any help.

  #2  
Old July 14th, 2004, 05:30 PM
Kolyan
external usenet poster
 
Posts: n/a
Default Formula

Robert,

You simply can "anchor" the column, column # 2 in this case
Do this via dollar sign, e.g. Staff!D$2

cheers,
Kolyan
-----Original Message-----
Hello,

If user enters a value greater than zero in a given cell
then the cell is equal to the value in Staff!D2.
The problem I need the Staff!D2 to stay constant when I
drag the formula to other cells. See below:

This what I do when I drag the formula down:
=IF(C130,Staff!D2,"")
=IF(C140,Staff!D3,"")
=IF(C150,Staff!D4,"")
=IF(C160,Staff!D5,"")
=IF(C170,Staff!D6,"")

This is what I want it do:
=IF(C130,Staff!D2,"")
=IF(C140,Staff!D2,"")
=IF(C150,Staff!D2,"")
=IF(C160,Staff!D2,"")
=IF(C170,Staff!D2,"")

I know I can go to each cell and change the Value_if_true
to Staff!D2 but I would have do this for thousands of
cells.

I was just wondering if there is an easier way to have

the
Logical_Test change like it is suppose to (ie C13, C14,
etc) but the Value_if_true stay the same (ie Staff!D2).

Or is there way to come back and change all the
Value_if_true to Staff!D2.

Thanks for any help.

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting a SUMPRODUCT formula to COUNTA active... BeSmart Worksheet Functions 8 March 27th, 2004 03:36 PM
Alternative formula to HLookup Bernie Deitrick Worksheet Functions 0 March 26th, 2004 12:53 PM
Offset formula Frank Kabel Worksheet Functions 5 March 15th, 2004 09:50 PM
Dynamic formula to sum across rows turtleman2 Worksheet Functions 5 March 8th, 2004 08:11 PM
Sheet Names Joseph M. Yonek Worksheet Functions 6 January 3rd, 2004 02:15 AM


All times are GMT +1. The time now is 07:30 PM.


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