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  

Attempting to Copy a IF Function



 
 
Thread Tools Display Modes
  #1  
Old September 18th, 2008, 05:54 AM posted to microsoft.public.excel.worksheet.functions
Andrew Holzman
external usenet poster
 
Posts: 2
Default Attempting to Copy a IF Function

I need to know how to cascade a IF formula down that will only change the
first value of the Logical Test and will leave the true and false statements
unchanged. Example in the formula =IF(B2 = "080012",H2, H3) I need B2 to
update as I cascade (copy) down the spreadsheet but I need H2, H3 to remain
unchanged. I am not able to find anything on the website to handle this. Even
when I copy and paste it updates all three values and not just the one. Can
anyone please help me update the function so that only the Logical Test value
changes.

--
Andrew Holzman
  #2  
Old September 18th, 2008, 06:40 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Attempting to Copy a IF Function

Try it like this:

=IF(B2="080012",H$2, H$3)

The $ keep the rows from changing.

You can do the same thing for the columns:

=IF(B2="080012",$H2, $H3)

The $ keep the colimns from changing.

You can also do it for both rows and columns:

=IF(B2="080012",$H$2, $H$3)

Or, you can even "mix and match":

=IF(B2 = "080012",$H2, H$3)

--
Biff
Microsoft Excel MVP


"Andrew Holzman" wrote in message
...
I need to know how to cascade a IF formula down that will only change the
first value of the Logical Test and will leave the true and false
statements
unchanged. Example in the formula =IF(B2 = "080012",H2, H3) I need B2 to
update as I cascade (copy) down the spreadsheet but I need H2, H3 to
remain
unchanged. I am not able to find anything on the website to handle this.
Even
when I copy and paste it updates all three values and not just the one.
Can
anyone please help me update the function so that only the Logical Test
value
changes.

--
Andrew Holzman



  #3  
Old September 18th, 2008, 08:01 AM posted to microsoft.public.excel.worksheet.functions
Andrew Holzman
external usenet poster
 
Posts: 2
Default Attempting to Copy a IF Function

I knew it was going to be something simple that I was forgetting. Thanks for
the help.
--
Andrew Holzman


"T. Valko" wrote:

Try it like this:

=IF(B2="080012",H$2, H$3)

The $ keep the rows from changing.

You can do the same thing for the columns:

=IF(B2="080012",$H2, $H3)

The $ keep the colimns from changing.

You can also do it for both rows and columns:

=IF(B2="080012",$H$2, $H$3)

Or, you can even "mix and match":

=IF(B2 = "080012",$H2, H$3)

--
Biff
Microsoft Excel MVP


"Andrew Holzman" wrote in message
...
I need to know how to cascade a IF formula down that will only change the
first value of the Logical Test and will leave the true and false
statements
unchanged. Example in the formula =IF(B2 = "080012",H2, H3) I need B2 to
update as I cascade (copy) down the spreadsheet but I need H2, H3 to
remain
unchanged. I am not able to find anything on the website to handle this.
Even
when I copy and paste it updates all three values and not just the one.
Can
anyone please help me update the function so that only the Logical Test
value
changes.

--
Andrew Holzman




  #4  
Old September 18th, 2008, 05:10 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Attempting to Copy a IF Function

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Andrew Holzman" wrote in message
...
I knew it was going to be something simple that I was forgetting. Thanks
for
the help.
--
Andrew Holzman


"T. Valko" wrote:

Try it like this:

=IF(B2="080012",H$2, H$3)

The $ keep the rows from changing.

You can do the same thing for the columns:

=IF(B2="080012",$H2, $H3)

The $ keep the colimns from changing.

You can also do it for both rows and columns:

=IF(B2="080012",$H$2, $H$3)

Or, you can even "mix and match":

=IF(B2 = "080012",$H2, H$3)

--
Biff
Microsoft Excel MVP


"Andrew Holzman" wrote in
message
...
I need to know how to cascade a IF formula down that will only change
the
first value of the Logical Test and will leave the true and false
statements
unchanged. Example in the formula =IF(B2 = "080012",H2, H3) I need B2
to
update as I cascade (copy) down the spreadsheet but I need H2, H3 to
remain
unchanged. I am not able to find anything on the website to handle
this.
Even
when I copy and paste it updates all three values and not just the one.
Can
anyone please help me update the function so that only the Logical Test
value
changes.

--
Andrew Holzman






 




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


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


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