I am trying to get a return value in excel. If cell 07 has an "x" then return 25% esleif p7 has the "x" then return 50% esleif q7 has the "x" then return 75% esleif q7 has the "x" then return 100%
I am trying to get a return value in excel. If cell 07 has an "x" then return 25% esleif p7 has the "x" then return 50% esleif q7 has the "x" then return 75% esleif q7 has the "x" then return 100%
Last edited by kfanguyjr; 11-16-2010 at 10:20 AM. Reason: did not follow forum rules
Ok that seems to work. But how can i have it return 0% if there is nothing in the array of cells?
Perhaps:
or, given use of XL2007![]()
=IF(COUNTIF(O7:R7,"x"),25%*MATCH("x",O7:R7,0),0)
![]()
=IFERROR(25%*MATCH("x",O7:R7,0),0)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Awesome Thanks!!
Perhaps:
assumes "x" exists in one or more cells - modify to account for this not being the case if nec.![]()
=25%*MATCH("x",O7:R7,0) [presumed last instance is R - you repeated Q twice]
Last edited by DonkeyOte; 11-16-2010 at 11:04 AM. Reason: amended Q to R
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks