Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default complicated if function

i need to pose a question that has 4 possible responses. each response will
dictate a cell to have a quantity

A1: Fins? B2: response is either; BM, Reno, Stucco, Nail

Column B header is QTY
A2:BM B2: 2 (if response is BM) 0 (if response is anything else)
A3:Reno B3: 2 (if response is Reno) 0 (if response is anything else)
A4:Stucco B4: 2 (if response is Stucco) 0 (if response is anything else)

how do i create a formula for this?

Oh and to make matters worse there is a qty for the sheet. if the qty for
the sheet is 1 than the above is correct.
if the qty for the sheet is 2 or anything else than B2, B3, and B4 need to
be multiplied by that qty*2

ex: (sheet qty is 2 than B2 qty is 4, sheet qty is 3 than B2 is 6)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default complicated if function

Presumably sheet qty is in a cell somewhere? Assume it is D1. Put this
formula in B2:

=IF(B$1=A2,2,0)*D$1

Then copy into B3:B4

What happens if you select Nail in B1?

Hope this helps.

Pete


On Nov 7, 12:41*am, ForeverH
wrote:
i need to pose a question that has 4 possible responses. *each response will
dictate a cell to have a quantity

A1: Fins? * B2: response is either; BM, Reno, Stucco, Nail

* * * * * * * *Column B header is QTY
A2:BM * * * B2: 2 (if response is BM) 0 (if response is anything else)
A3:Reno * *B3: 2 (if response is Reno) 0 (if response is anything else)
A4:Stucco *B4: 2 (if response is Stucco) 0 (if response is anything else)

how do i create a formula for this? *

Oh and to make matters worse there is a qty for the sheet. *if the qty for
the sheet is 1 than the above is correct. *
if the qty for the sheet is 2 or anything else than B2, B3, and B4 need to
be multiplied by that qty*2

ex: (sheet qty is 2 than B2 qty is 4, sheet qty is 3 than B2 is 6)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default complicated if function

Thank you! that worked.

- if the response is nail there will be no qtys to formulate (nail requires
nothing done)

Thanks again

"Pete_UK" wrote:

Presumably sheet qty is in a cell somewhere? Assume it is D1. Put this
formula in B2:

=IF(B$1=A2,2,0)*D$1

Then copy into B3:B4

What happens if you select Nail in B1?

Hope this helps.

Pete


On Nov 7, 12:41 am, ForeverH
wrote:
i need to pose a question that has 4 possible responses. each response will
dictate a cell to have a quantity

A1: Fins? B2: response is either; BM, Reno, Stucco, Nail

Column B header is QTY
A2:BM B2: 2 (if response is BM) 0 (if response is anything else)
A3:Reno B3: 2 (if response is Reno) 0 (if response is anything else)
A4:Stucco B4: 2 (if response is Stucco) 0 (if response is anything else)

how do i create a formula for this?

Oh and to make matters worse there is a qty for the sheet. if the qty for
the sheet is 1 than the above is correct.
if the qty for the sheet is 2 or anything else than B2, B3, and B4 need to
be multiplied by that qty*2

ex: (sheet qty is 2 than B2 qty is 4, sheet qty is 3 than B2 is 6)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default complicated if function

You're welcome - thanks for feeding back.

Pete

On Nov 7, 1:27*am, ForeverH
wrote:
Thank you! *that worked. *

- if the response is nail there will be no qtys to formulate (nail requires
nothing done)

Thanks again



"Pete_UK" wrote:
Presumably sheet qty is in a cell somewhere? Assume it is D1. Put this
formula in B2:


=IF(B$1=A2,2,0)*D$1


Then copy into B3:B4


What happens if you select Nail in B1?


Hope this helps.


Pete


On Nov 7, 12:41 am, ForeverH
wrote:
i need to pose a question that has 4 possible responses. *each response will
dictate a cell to have a quantity


A1: Fins? * B2: response is either; BM, Reno, Stucco, Nail


* * * * * * * *Column B header is QTY
A2:BM * * * B2: 2 (if response is BM) 0 (if response is anything else)
A3:Reno * *B3: 2 (if response is Reno) 0 (if response is anything else)
A4:Stucco *B4: 2 (if response is Stucco) 0 (if response is anything else)


how do i create a formula for this? *


Oh and to make matters worse there is a qty for the sheet. *if the qty for
the sheet is 1 than the above is correct. *
if the qty for the sheet is 2 or anything else than B2, B3, and B4 need to
be multiplied by that qty*2


ex: (sheet qty is 2 than B2 qty is 4, sheet qty is 3 than B2 is 6)- Hide quoted text -


- Show quoted text -


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
Need help with a complicated function smokief Excel Worksheet Functions 2 August 21st 07 04:42 PM
Complicated Function Question Matthew Excel Discussion (Misc queries) 3 March 17th 07 08:17 PM
Complicated Sum Product Function Stacy M via OfficeKB.com Excel Worksheet Functions 0 August 5th 05 08:01 PM
Complicated lookup function chrisrowe_cr Excel Worksheet Functions 4 July 19th 05 05:52 PM
complicated function in excel kelkel Excel Worksheet Functions 3 April 18th 05 07:19 PM


All times are GMT +1. The time now is 03:37 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"