LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Formula to return value from multiple sheets if volume matched

You don't need the double If to start. Use:
=IF(E8<=50000,'=50k pricing sheet'!AB7,IF(E8=199999,'=100k pricing
sheet'!I7,IF(E8=299999,'=200k pricing sheet'!I7,IF(E8=499999,'=300k
pricing sheet'!I7,IF(E8=500000,'=500k pricing sheet'!AB7)))))

Also, you need to test for <= rather than =, because everything greater
than 199999 will be caught by the second test, and nothing between 50000 and
199999 will be found. Use:
=IF(E8<=50000,'=50k pricing sheet'!AB7,IF(E8<=199999,'=100k pricing
sheet'!I7,IF(E8<=299999,'=200k pricing sheet'!I7,IF(E8<=499999,'=300k
pricing sheet'!I7,IF(E8=500000,'=500k pricing sheet'!AB7)))))

Next, I would use < rather than <= in case you have a value like 199999.50:
=IF(E8<=50000,'=50k pricing sheet'!AB7,IF(E8<200000,'=100k pricing
sheet'!I7,IF(E8<300000,'=200k pricing sheet'!I7,IF(E8<500000,'=300k
pricing sheet'!I7,IF(E8=500000,'=500k pricing sheet'!AB7)))))

Next, you don't need the last If statement:
=IF(E8<=50000,'=50k pricing sheet'!AB7,IF(E8<200000,'=100k pricing
sheet'!I7,IF(E8<300000,'=200k pricing sheet'!I7,IF(E8<500000,'=300k
pricing sheet'!I7,'=500k pricing sheet'!AB7))))

Finally, I would put all your prices on one sheet, and use a Vlookup
instead. It's much easier to maintain.

Regards,
Fred




"Julie HSV" <Julie wrote in message
...
I have a worksheet with average unit prices for <=50k,
<=100k,<=200k,<=300k,<500k and am creating a cover worksheet which will
pull
the relevant unit cost based on the volume entered.

EG, I have a volume of 150k so I want the formula to take the price from
the
<=100k sheet. I originally did the formula for sum(if xxx) but it added
each unit price instead of looking for the correct volume price.

Tried this but have an error - anyone able to help me ?

=if(IF(E8<=50000,'=50k pricing sheet'!AB7,IF(E8=199999,'=100k pricing
sheet'!I7,IF(E8=299999,'=200k pricing sheet'!I7,IF(E8=499999,'=300k
pricing sheet'!I7,IF(E8=500000,'=500k pricing sheet'!AB7))))))


 
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
VLookUp or other function to return matched data from multiple col MMangen Excel Discussion (Misc queries) 12 June 25th 09 09:44 PM
Need help with Hlookup - need to return values below the matched c ACornell Excel Worksheet Functions 2 May 29th 09 08:25 PM
Return matched value 2 criteria Diddy Excel Worksheet Functions 4 December 1st 08 10:51 PM
Return Formula results to specific row of matched criteria Sam via OfficeKB.com Excel Worksheet Functions 3 September 10th 07 11:08 PM
Return Title to matched column [email protected] New Users to Excel 1 February 21st 06 06:04 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"