#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default Returning Values

Ok, here's the deal:
I have created a recipe costing sheet that is linked to my product list in
the same workbook. Right now I am using defined names and validation rules
to create dropdown lists in the costing sheet to select the products. What I
have managed to do is that when a product is selected, the rest of the cells
across the row should fill in. I've gotten almost all of them to work. The
product list has about 533 rows in it. I actually have three questions.
1) Is there a way to name the range so that as the list expands or
contracts, nothing will be out of wack.
2) This is what has been throwing me lately. I have a column in the
costing sheet called "Oz." where all units will be converted to "oz." I
created a separate sheet that just had a list of the units and their
conversion factors. I run into a problem when I try to convert a product
that is an "each." Example: how much does 1 onion weigh? I tried the
following formula, but it doesn't seem to be working. Any suggestions?
=IF(D8='Unit Conversion'!A3:A10,VLOOKUP(D8,'Unit
Conversion'!A3:B11,2,FALSE),VLOOKUP(A8,'Food Inventory
Master'!$A$13:$C$533,3,FALSE))*C8
3) Finally, the last column of the costing sheet should just multiply the
cost per unit (usually "oz.") times the ounces. What I want it to do is that
if the units being used is not ounces, but "ea." I want it to multiply by a
different column. Is there a way to do that?
Thanks in advance. And any and all suggestions are welcome.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Returning Values

Hi Harlan,


Q1. Try something based on
=Sheet1!$A$1:OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$ A),)
using a column that has no gaps for the column reference in COUNTA(Sheet1!$A:$A).
Q2. More information needed on what C8 & D8 are and the structure of 'Unit Conversion'
Q3. You could use an IF test, along the lines of IF(ozVal=0,eaOffset,ozOffset) but, again, more information would be needed on your
data structures and existing formulae.

Cheers

--
macropod
[MVP - Microsoft Word]


"Harlan" wrote in message ...
| Ok, here's the deal:
| I have created a recipe costing sheet that is linked to my product list in
| the same workbook. Right now I am using defined names and validation rules
| to create dropdown lists in the costing sheet to select the products. What I
| have managed to do is that when a product is selected, the rest of the cells
| across the row should fill in. I've gotten almost all of them to work. The
| product list has about 533 rows in it. I actually have three questions.
| 1) Is there a way to name the range so that as the list expands or
| contracts, nothing will be out of wack.
| 2) This is what has been throwing me lately. I have a column in the
| costing sheet called "Oz." where all units will be converted to "oz." I
| created a separate sheet that just had a list of the units and their
| conversion factors. I run into a problem when I try to convert a product
| that is an "each." Example: how much does 1 onion weigh? I tried the
| following formula, but it doesn't seem to be working. Any suggestions?
| =IF(D8='Unit Conversion'!A3:A10,VLOOKUP(D8,'Unit
| Conversion'!A3:B11,2,FALSE),VLOOKUP(A8,'Food Inventory
| Master'!$A$13:$C$533,3,FALSE))*C8
| 3) Finally, the last column of the costing sheet should just multiply the
| cost per unit (usually "oz.") times the ounces. What I want it to do is that
| if the units being used is not ounces, but "ea." I want it to multiply by a
| different column. Is there a way to do that?
| Thanks in advance. And any and all suggestions are welcome.


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
Sumproduct issues SteveDB1 Excel Worksheet Functions 25 June 3rd 09 04:58 PM
Looking up data in a column, then returning values of respective row TC Excel Discussion (Misc queries) 4 March 22nd 06 02:47 PM
Formula for Returning values in another spreadsheet lrbest4x4xfar Excel Worksheet Functions 1 October 14th 05 02:52 PM
vlookup returning multiple values soph Excel Worksheet Functions 2 October 14th 05 05:17 AM
Returning Descending Values Jim Excel Worksheet Functions 14 September 27th 05 01:30 PM


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