Problem with nested If/Or statements in Excel 2007

dnksideways

New Member
Joined
Jun 30, 2010
Messages
14
I'm trying to use If/Or statements to get a dashboard to work based on the following criteria and get an error about using too many arguments. I've listed below what I'm trying to get the forumla to produce. When you select the status (shown below) from the list I created in a cell it is supposed to drive the forumula such that:

Status Cell Reference
Green I6
1 Yellow G6
3 Yellow or Red E6
2 Yellow Interpolate between E6 and G6

Here is what I have so far but it's not much:
=IF(OR(K25="Red",K25="3 Yellow"),$E$6,IF(K25="Green",$I$6))

Any help is appreciated and if this isn't clear enough please let me know and I'll provide more information. thanks.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
sorry, there is a drop-down list which drives the formula. The user can select "Green", "1 Yellow", "2 Yellow", "3 Yellow", "Red". The formula as listed below is based on the user's selection from the list.
=IF(OR(K25="Red",K25="3 Yellow"),$E$6,IF(K25="Green",$I$6,$G$6))

I know the formula is complete because the last else, the $g$6 reference, doesn't include a selection of 2 Yellow. The 2 Yellow part is what I'm having problems with as it involves linear interpolation between the G6 and E6 values (0 & 5%, respectively).
 
Upvote 0
ok so I've gotten this setup (I had to hide some columns in order for the HTML to work)
Excel Workbook
ABCDEFHIJKL
115Delivered bySelect a year2010
2JanuaryFebruaryMarchAprilJuneJulyAugustSeptemberOctober
31Boy 7000010000
42Boy 2000000000
53Boy 3100000100
64Boy 22000000010
75Boy 5000000001
Sheet2
Excel 2003
Cell Formulas
RangeFormula
A1=COUNTIF(Masterlist!D3:D24,E1)
B3=IF(N($A3),INDEX(Masterlist!$A$3:$G$24,$A3,MATCH(B$1,Masterlist!$A$1:$G$1,0)),"")
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself

I setup the drop-down for the year and it seems to work. The formula in A1 is a count for the number of entries that the other formulas work from.

Hopefully this will work for you.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top