LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default Need to make a mark up table with more than 7 if statements

Hi,

The best way to handle this sort of arrangement is usually via a lookup
table and LOOKUP formula. The table could be constructed like:
Col A Col B
004.99 =A3*6
009.90 =A3*6.3+5
024.99 =A3*5.8+12
074.99 =A3*5.5+8
099.99 =A3*5.25+8
149.99 =A3*5.25+8
999999 =A3*5+8
I'm assuming there's an error in your post, since the last two tests have
the same true result; otherwise the second-last one could be deleted. You
also have no test for values =149.99, so note the made-up test at the end
for values <999999.

See Excel's help file for how to code the LOOKUP.

If there are objections to a lookup solution, you can achieve the result
with an in-line formula and NO if statements, as in:
=(A3<4.99)*A3*6+(A3=4.99)*(A3<9.9)*((A3*6.3)+5)+( A3=9.9)*(A3<24.99)*((A3*5
..8)+12)+(A3=24.99)*(A3<74.99)*((A3*5.5)+8)+(A3= 74.99)*(A3<99.99)*((A3*5.25
)+8)+(A3=99.99)*(A3<149.99)*((A3*5.25)+8)+(A3=14 9.99)*((A3*5)+8)
Again, note the made-up test at the end for values =149.99.

Cheers

--
macropod
[MVP - Microsoft Word]


"Digace" wrote in message
...

=IF(A3<4.99,A3*6,IF(A3<9.9,(A3*6.3)+5,IF(A3<24.99, (A3*6)+15,IF(A3<49.99,(A3*
5.8)+12,IF(A3<74.99,(A3*5.5)+8,IF(A3<99.99,(A3*5.2 5)+8,IF(A3<149.99,(A3*5.25
)+8)))))))
this is the formula so far but i need more than 7 statements is there a

way
to put more than 7?





 
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
Pulling from a table to make a timeline KwaiLo Excel Worksheet Functions 1 May 5th 06 03:28 PM
Make Excel Table fit into Word Doucument R New Users to Excel 4 February 13th 06 03:55 AM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
i need to make a pub quiz league fixture table mike Excel Discussion (Misc queries) 1 October 5th 05 08:10 PM
how do I make hard carriage return appear in pivot table? colebill1997 Excel Discussion (Misc queries) 1 September 28th 05 01:56 PM


All times are GMT +1. The time now is 05:38 PM.

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"