Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Viviank
 
Posts: n/a
Default formula help

I volunteered to help set up a spreadsheet for a school fundraiser. I need
help with a formula. The teacher wants to keep track of student profits.
Basically, if a student sells 1-10 items, they receive $20 of credit, if they
sell 11-20 items, they receive $20 in the account, etc, How would I set up a
formula like that?? HELP

Vivian K
  #2   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

set up a table with the quantity to sell in one column and the corresponding
credit in the next column.

Then you can use a Vlookup formula using the actual amount sold as the
lookup value to return the credit.

See the help on Vlookup to see what you need to do.

--
Regards,
Tom Ogilvy

"Viviank" wrote in message
...
I volunteered to help set up a spreadsheet for a school fundraiser. I

need
help with a formula. The teacher wants to keep track of student profits.
Basically, if a student sells 1-10 items, they receive $20 of credit, if

they
sell 11-20 items, they receive $20 in the account, etc, How would I set up

a
formula like that?? HELP

Vivian K



  #3   Report Post  
Kevin Lehrbass
 
Posts: n/a
Default

Hi Viviank,

Try using a vlookup formula like this:
=VLOOKUP(A1,{1,20;11,30;20,30},2,TRUE)
After pasting this formula into the formula bar, you MUST press
CTRL+SHIFT+ENTER as this is an array formula.
In the formula, if the number of units sold is = 1 and less than 11 then
the formula returns 20. If the number of units sold is = 11 and less than
20 then the formula returns 30, etc.
You can modify the numbers as required.
Send me an email if you have any questions.
Kevin Lehrbass
www.spreadsheetsolutions4u.com


"Viviank" wrote:

I volunteered to help set up a spreadsheet for a school fundraiser. I need
help with a formula. The teacher wants to keep track of student profits.
Basically, if a student sells 1-10 items, they receive $20 of credit, if they
sell 11-20 items, they receive $20 in the account, etc, How would I set up a
formula like that?? HELP

Vivian K

  #4   Report Post  
Viviank
 
Posts: n/a
Default

You rock! I would never have figured that out. Now I will look like a
genius to the choir teacher. Thanks a lot.

"Kevin Lehrbass" wrote:

Hi Viviank,

Try using a vlookup formula like this:
=VLOOKUP(A1,{1,20;11,30;20,30},2,TRUE)
After pasting this formula into the formula bar, you MUST press
CTRL+SHIFT+ENTER as this is an array formula.
In the formula, if the number of units sold is = 1 and less than 11 then
the formula returns 20. If the number of units sold is = 11 and less than
20 then the formula returns 30, etc.
You can modify the numbers as required.
Send me an email if you have any questions.
Kevin Lehrbass
www.spreadsheetsolutions4u.com


"Viviank" wrote:

I volunteered to help set up a spreadsheet for a school fundraiser. I need
help with a formula. The teacher wants to keep track of student profits.
Basically, if a student sells 1-10 items, they receive $20 of credit, if they
sell 11-20 items, they receive $20 in the account, etc, How would I set up a
formula like that?? HELP

Vivian K

  #5   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

that isn't an array formula and doesn't require entry with Ctrl+Shift+Enter

--
Regards,
Tom Ogilvy

"Kevin Lehrbass" wrote in message
...
Hi Viviank,

Try using a vlookup formula like this:
=VLOOKUP(A1,{1,20;11,30;20,30},2,TRUE)
After pasting this formula into the formula bar, you MUST press
CTRL+SHIFT+ENTER as this is an array formula.
In the formula, if the number of units sold is = 1 and less than 11 then
the formula returns 20. If the number of units sold is = 11 and less

than
20 then the formula returns 30, etc.
You can modify the numbers as required.
Send me an email if you have any questions.
Kevin Lehrbass
www.spreadsheetsolutions4u.com


"Viviank" wrote:

I volunteered to help set up a spreadsheet for a school fundraiser. I

need
help with a formula. The teacher wants to keep track of student

profits.
Basically, if a student sells 1-10 items, they receive $20 of credit, if

they
sell 11-20 items, they receive $20 in the account, etc, How would I set

up a
formula like that?? HELP

Vivian K





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
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
writing a formula for a colored value aaronwexler New Users to Excel 11 September 1st 05 03:11 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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