#1   Report Post  
Posted to microsoft.public.excel.misc
Cihan Ozdemir
 
Posts: n/a
Default Formula How To....

I have what seems like a simple problem to solve, but I can not seem to
figure it out.

Imagine the following:

Cost of Widget is based on three variables: A, B, C.

So, if I enter a value for A, B and C, then the cost is calculated based on
these inputs (several steps of calculations and iterations, etc.).

I want to put a spreadsheet together that lists a range of values of A and B
with a constant value of C, where each cell would contain the cost those
inputs.

i.e.
Cell B1=10
Cell B2=20
Cell B3=30

Cell B5=20*B1
Cell B6=B5*B2
Cell B7=B3*B6+B5

Cell B9=sum(B5:B7) COST OF WIDGET

Thus, B9 is a function of B1, B2 and B3.

So, if i have a table where the column headings are a range of values for B1
and the row headings are a range of values for B2, and I fix B3 for each
table, then each cell within the table would report a cost depending what
value of B1 and B2 are used.

I hope this makes sense to someone out there. I need help and I don't know
how to do this. I need to provide a supplier or ours a price sheet. I don't
want to reveal how i calculate the costs, i just want to give him a
spreadsheet with the costs and nothing more. This is the reason for my
question.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Formula How To....


Hi, I think what you want is an INDEX, MATCH formula:

=INDEX(E2:G4,MATCH(B1,D2:D4,0),MATCH(A1,E1:G1,0))

where
E2:G4 is your range with all the combination
D2:D4 is your row header
E1:G1 is your column header
A1 is a value from your column header
B1 is a value from row header

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=495377

  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Formula How To....

Assuming A2:A6 contain values for your variable B1, cell B1 through F1
contain values for your variable B2, and cell A1 contains your constant for
variable B3, you could enter this formula in cell B2, then copy it across and
down to fill your table.

=20*$A2*((B$1*(1+$A$1))+2)

Then print out the table. Is this close to what you are looking for?

"Cihan Ozdemir" wrote:

I have what seems like a simple problem to solve, but I can not seem to
figure it out.

Imagine the following:

Cost of Widget is based on three variables: A, B, C.

So, if I enter a value for A, B and C, then the cost is calculated based on
these inputs (several steps of calculations and iterations, etc.).

I want to put a spreadsheet together that lists a range of values of A and B
with a constant value of C, where each cell would contain the cost those
inputs.

i.e.
Cell B1=10
Cell B2=20
Cell B3=30

Cell B5=20*B1
Cell B6=B5*B2
Cell B7=B3*B6+B5

Cell B9=sum(B5:B7) COST OF WIDGET

Thus, B9 is a function of B1, B2 and B3.

So, if i have a table where the column headings are a range of values for B1
and the row headings are a range of values for B2, and I fix B3 for each
table, then each cell within the table would report a cost depending what
value of B1 and B2 are used.

I hope this makes sense to someone out there. I need help and I don't know
how to do this. I need to provide a supplier or ours a price sheet. I don't
want to reveal how i calculate the costs, i just want to give him a
spreadsheet with the costs and nothing more. This is the reason for my
question.

Thank you.

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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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