A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Choose function not working



 
 
Thread Tools Display Modes
  #1  
Old December 10th 16, 09:55 AM
Dave1972 Dave1972 is offline
Junior Member
 
First recorded activity by ExcelBanter: Dec 2016
Posts: 3
Default Choose function not working

Excel Masters,
I can't get my choose formula to work

=A2*(CHOOSE(INDEX(MATCH(B2,period,0),1),52,26,12,2 ))

Essentially doing up a home budgeting sheet that i can modify at some point.

what am I trying to achieve?

A2 is a payment amount

B2 is a drop down list of payment frequencies ie week, fortnight, month, bi-annual. This cell has the defined name of "period"

I did read on another forum that the INDEX function is not needed, however, this is how it stands at the moment. At this point, it will only calculate weekly no matter what period I choose from the drop down.....
Any suggestions?
Ads
  #2  
Old December 11th 16, 07:36 AM posted to microsoft.public.excel.misc
Claus Busch
external usenet poster
 
Posts: 3,446
Default Choose function not working

Hi Dave,

Am Sat, 10 Dec 2016 09:55:38 +0000 schrieb Dave1972:

> =A2*(CHOOSE(INDEX(MATCH(B2,period,0),1),52,26,12,2 ))


try:
=A2*VLOOKUP(period,{"week",52;"fortnight",26;"mont h",12;"bi-annual",2},2,0)


Regards
Claus B.
--
Windows10
Office 2016
  #3  
Old December 11th 16, 09:59 AM
Dave1972 Dave1972 is offline
Junior Member
 
First recorded activity by ExcelBanter: Dec 2016
Posts: 3
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Dave,

Am Sat, 10 Dec 2016 09:55:38 +0000 schrieb Dave1972:

> =A2*(CHOOSE(INDEX(MATCH(B2,period,0),1),52,26,12,2 ))


try:
=A2*VLOOKUP(period,{"week",52;"fortnight",26;"mont h",12;"bi-annual",2},2,0)


Regards
Claus B.
--
Windows10
Office 2016
Hey there Claus,
Worked a treat...thank you. However...now I am intrigued....why didn't the other formula work? any clue?
  #4  
Old December 11th 16, 11:15 AM posted to microsoft.public.excel.misc
Claus Busch
external usenet poster
 
Posts: 3,446
Default Choose function not working

Hi Dave,

Am Sun, 11 Dec 2016 09:59:47 +0000 schrieb Dave1972:

> Worked a treat...thank you. However...now I am intrigued....why didn't
> the other formula work? any clue?


period is only one cell. Therefore MATCH doesn't work.
If you have a range named "period" you can use CHOOSE(MATCH...)
Have a look:
https://1drv.ms/x/s!AqMiGBK2qniTgYM8Bn8SrF_p88VMVw
period is the named range R1:R4.


Regards
Claus B.
--
Windows10
Office 2016
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choose format while Find & Replace not working Ghitorni Excel Discussion (Misc queries) 0 February 22nd 10 10:29 AM
Newly created Get Function is not working when I copied the syntax from a working function CJ Excel Programming 1 January 16th 07 05:28 AM
which function to choose? J-EL Excel Worksheet Functions 0 November 9th 06 07:54 PM
Which function to choose? J-EL Excel Worksheet Functions 2 November 9th 06 06:46 PM
CHOOSE Function Paul Excel Worksheet Functions 4 November 2nd 04 06:16 PM


All times are GMT +1. The time now is 10:03 PM.


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