#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default List Box

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?


Thanks
Chey
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default List Box

How did you make the combobox?

Did you use a combobox from the Control toolbox toolbar?
Did you use a dropdown from the Forms toolbar?
Did you use data|validation?



Chey wrote:

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?

Thanks
Chey


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default List Box

Control Tool Box

"Dave Peterson" wrote:

How did you make the combobox?

Did you use a combobox from the Control toolbox toolbar?
Did you use a dropdown from the Forms toolbar?
Did you use data|validation?



Chey wrote:

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?

Thanks
Chey


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default List Box

Go into design mode.
Show the properties for that combobox
Change the LinkedCell property to the address of a cell (out of the way or under
the combobox???)
then use that linked cell in your formula.

=If(a1="Weekly",C20*5,0)
(A1 is my linked cell)

You need double quotes around strings and you don't need =sum() in your
expression.



Chey wrote:

Control Tool Box

"Dave Peterson" wrote:

How did you make the combobox?

Did you use a combobox from the Control toolbox toolbar?
Did you use a dropdown from the Forms toolbar?
Did you use data|validation?



Chey wrote:

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?

Thanks
Chey


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default List Box

I think I may be a little confused
In my combo box I have the following choices
Weekly
Every 2 Weeks
Twice Monthly
Monthly

When i linked the cell I linked it to H21
When I choose drop down it changed my cell to Weekly or whatever I choose.

Do I put the formula in H21 or in the combo box properties?

What I need is
Weekly (C20*4.3)
Every 2 Weeks (C20*2.15)
Twice Montly (C20*2)
Monthly (C20*1)

Thanks so much for your help

Cheyenne

"Dave Peterson" wrote:

Go into design mode.
Show the properties for that combobox
Change the LinkedCell property to the address of a cell (out of the way or under
the combobox???)
then use that linked cell in your formula.

=If(a1="Weekly",C20*5,0)
(A1 is my linked cell)

You need double quotes around strings and you don't need =sum() in your
expression.



Chey wrote:

Control Tool Box

"Dave Peterson" wrote:

How did you make the combobox?

Did you use a combobox from the Control toolbox toolbar?
Did you use a dropdown from the Forms toolbar?
Did you use data|validation?



Chey wrote:

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?

Thanks
Chey

--

Dave Peterson


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default List Box

The linked cell is only going to contain the value of the combobox--not a
formula.

So you can use this formula in any other cell (not H21, not C20).

=C20*IF(H21="weekly",4.3,IF(H21="every 2 weeks",2.15,
IF(H21="twice monthly",2,IF(H21="monthly",1,0))))

(all one cell)

And I used "twice monthly" with a difference in spelling.

This formula is equivalent:
=C20*(((H21="weekly")*4.3)+((H21="every 2 weeks")*2.15)
+((H21="twice monthly")*2)+((H21="monthly")*1))

And doesn't use the =if()'s.



Chey wrote:

I think I may be a little confused
In my combo box I have the following choices
Weekly
Every 2 Weeks
Twice Monthly
Monthly

When i linked the cell I linked it to H21
When I choose drop down it changed my cell to Weekly or whatever I choose.

Do I put the formula in H21 or in the combo box properties?

What I need is
Weekly (C20*4.3)
Every 2 Weeks (C20*2.15)
Twice Montly (C20*2)
Monthly (C20*1)

Thanks so much for your help

Cheyenne

"Dave Peterson" wrote:

Go into design mode.
Show the properties for that combobox
Change the LinkedCell property to the address of a cell (out of the way or under
the combobox???)
then use that linked cell in your formula.

=If(a1="Weekly",C20*5,0)
(A1 is my linked cell)

You need double quotes around strings and you don't need =sum() in your
expression.



Chey wrote:

Control Tool Box

"Dave Peterson" wrote:

How did you make the combobox?

Did you use a combobox from the Control toolbox toolbar?
Did you use a dropdown from the Forms toolbar?
Did you use data|validation?



Chey wrote:

I have the list box with the information in it.
When I click on let say Weekly I want a cell in the spreadsheet to
If(ComboBox1 = Weekly, Sum(C20*5),0)

How do I get this to work?

Thanks
Chey

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
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
Dropdown List - list item endings not visible if column too narrow AK9955 Excel Discussion (Misc queries) 2 April 27th 07 09:02 AM
validation list--list depends on the selection of first list Michael New Users to Excel 2 April 27th 06 10:23 PM
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 Ed Excel Worksheet Functions 5 September 12th 05 09:48 AM
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM
sort list of players by team from player list on separate sheet Robert Excel Worksheet Functions 1 July 19th 05 01:57 AM


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