Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default change a formula based on another cell value

I am trying to use a different formula based on the value of cell.
So if the the cell value is "Store" use A1+B1+C1
If the cell value is "HQ" use A1+C1+F1
I know I can make a nice long IF formula (I actually need 3 different ones),
but can I put a formulas in other cells and refer to a different one in based
on the cell values?
Or any other creative idea is welcomed.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default change a formula based on another cell value

Well, if it's only 3, may just be easier to put into one IF.

But, you can put =A1+B1+C1 into, say, A3
Then =A1+C1+F1 into B3

Then your 3rd formula in C3.

So:

=IF(Cell="Store",A3,if(Cell="HQ",B3,C3))

just creates a reference to the formulas.

"SmartBlond" wrote:

I am trying to use a different formula based on the value of cell.
So if the the cell value is "Store" use A1+B1+C1
If the cell value is "HQ" use A1+C1+F1
I know I can make a nice long IF formula (I actually need 3 different ones),
but can I put a formulas in other cells and refer to a different one in based
on the cell values?
Or any other creative idea is welcomed.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default change a formula based on another cell value

My fault, I made it sound less complex.
I have 8 quarters of info and will be using sumif in the formulas as well.
So I was trying to put the formula in once for each (so 24 total) and not
have all of the possible calcs for each row. May not be possible as the
dynamic nature of moving to a new row would prevent it from using the right
rows of data.
Thank you however. Appreciate the response!

"Sean Timmons" wrote:

Well, if it's only 3, may just be easier to put into one IF.

But, you can put =A1+B1+C1 into, say, A3
Then =A1+C1+F1 into B3

Then your 3rd formula in C3.

So:

=IF(Cell="Store",A3,if(Cell="HQ",B3,C3))

just creates a reference to the formulas.

"SmartBlond" wrote:

I am trying to use a different formula based on the value of cell.
So if the the cell value is "Store" use A1+B1+C1
If the cell value is "HQ" use A1+C1+F1
I know I can make a nice long IF formula (I actually need 3 different ones),
but can I put a formulas in other cells and refer to a different one in based
on the cell values?
Or any other creative idea is welcomed.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default change a formula based on another cell value

well, depending on the values available, you can use a sumproduct to sum
based on multiple criteria.

=SUMPRODUCT(--(A2:A1000=quarter1 start date),--(A2:A1000<=quarter1 end
date),sum range)

But, not sure exactly what the goal is, so I'll leave it open ended there...

"SmartBlond" wrote:

My fault, I made it sound less complex.
I have 8 quarters of info and will be using sumif in the formulas as well.
So I was trying to put the formula in once for each (so 24 total) and not
have all of the possible calcs for each row. May not be possible as the
dynamic nature of moving to a new row would prevent it from using the right
rows of data.
Thank you however. Appreciate the response!

"Sean Timmons" wrote:

Well, if it's only 3, may just be easier to put into one IF.

But, you can put =A1+B1+C1 into, say, A3
Then =A1+C1+F1 into B3

Then your 3rd formula in C3.

So:

=IF(Cell="Store",A3,if(Cell="HQ",B3,C3))

just creates a reference to the formulas.

"SmartBlond" wrote:

I am trying to use a different formula based on the value of cell.
So if the the cell value is "Store" use A1+B1+C1
If the cell value is "HQ" use A1+C1+F1
I know I can make a nice long IF formula (I actually need 3 different ones),
but can I put a formulas in other cells and refer to a different one in based
on the cell values?
Or any other creative idea is welcomed.

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
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
Change formula based upon value of a different cell Steve[_15_] Excel Worksheet Functions 3 August 29th 08 11:56 PM
How do I change color pattern based upon a formula within a cell? aemuk Excel Worksheet Functions 1 June 16th 06 11:18 PM
How do I change cell color based upon data range within the cell? Chris Sanders Excel Worksheet Functions 1 March 6th 06 08:59 PM
Change cell in formula based on date Skillet Excel Discussion (Misc queries) 3 October 28th 05 12:11 AM


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

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"