Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Complete Newbe - Is this a MACRO function or VB ?

Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between 25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default Complete Newbe - Is this a MACRO function or VB ?

I will assume the values of interest can be integers only (since
otherwise you have lots of undefined possibilities). Create a table
in, say, $A$8:$B$12 that contains:

1 2995
9 3995
17 4995
25 6995
33 8395

Then, use =VLOOKUP(G10,$A$8:$B$12,2)
--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between 25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Complete Newbe - Is this a MACRO function or VB ?

Put this formula in G14

=IF(G10=1,IF(G10<=9, 2995,IF(G10<=16, 3995,IF(G10<=24, 4995, IF(G10<=32,
6995, 8395)) ) ),0)
--
HTH...

Jim Thomlinson


"Justin" wrote:

Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between 25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Complete Newbe - Is this a MACRO function or VB ?

In G14 put in the formula

=IF(G10<1,"",IF(G10<25,TRUNC((G10-1)/8)*1000+2995,IF(G10<32,6995,8395)))

--
Regards,
Tom Ogilvy

"Justin" wrote in message
...
Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between

25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Complete Newbe - Is this a MACRO function or VB ?

Put this in G14

=VLOOKUP(G10,{0,2995;9,3995;17,4995;25,6995;33,839 5},2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Justin" wrote in message
...
Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between

25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Complete Newbe - Is this a MACRO function or VB ?

Thanks to both of you - they both work very well.

Thanks again!

"Justin" wrote:

Hi -

Sorry to bother with such a simple question - but I am unable to get this
logic script to work. I'm sure that I'm missing something very simple - I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16 then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is between 25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Complete Newbe - Is this a MACRO function or VB ?

Which both? Four of us replied <g

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Justin" wrote in message
...
Thanks to both of you - they both work very well.

Thanks again!

"Justin" wrote:

Hi -

Sorry to bother with such a simple question - but I am unable to get

this
logic script to work. I'm sure that I'm missing something very simple -

I
apologize in advance!

If G10 is between 1 and 8 then G14 = 2995, if G10 is between 9 and 16

then
G14 = 3995, if G10 is between 17 and 24 then G14 = 4995, if G10 is

between 25
and 32 then G14 = 6995, if G10 is than 32 then G14 = 8395

Any thoughts? Where do I place this logic? In the cell (G10), or as a
"blind/hidden" cell somewhere else?

Thanks again.



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
Macro wait 30 seconds then Complete the Macro Vick Excel Discussion (Misc queries) 2 June 2nd 08 08:04 PM
newbe with a formula question. David franklin Excel Discussion (Misc queries) 5 February 4th 08 06:03 AM
Newbe help with a lookup Cybertech Excel Discussion (Misc queries) 2 January 13th 06 09:53 PM
Newbe Help with count/countif function Cybertech Excel Worksheet Functions 5 August 24th 05 03:48 AM
Macro Code Question for Newbe DataMan Excel Programming 2 September 22nd 03 07:39 PM


All times are GMT +1. The time now is 08:48 PM.

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"