ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF-then formula doesn't work (https://www.excelbanter.com/excel-discussion-misc-queries/171816-if-then-formula-doesnt-work.html)

pegman

IF-then formula doesn't work
 
I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!

Teethless mama

IF-then formula doesn't work
 
You put a bracket in wrong place
here is the correction:

=IF(M160,INDIRECT("V"&SUM(O2+1)),0)



"pegman" wrote:

I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!


Bob Phillips

IF-then formula doesn't work
 
=IF(M160,INDIRECT("V"&SUM(O2+1)),0)


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pegman" wrote in message
...
I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that
value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!




pegman

IF-then formula doesn't work
 
Thanks guys, everything works beuatiful now...

I need to figure how to protect these worksheets NOW...!!!!
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!


"pegman" wrote:

I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!


David Biddulph[_2_]

IF-then formula doesn't work
 
And you don't need the SUM as well as the + sign.
=IF(M160,INDIRECT("V"&(O2+1)),0)
--
David Biddulph

"Teethless mama" wrote in message
...
You put a bracket in wrong place
here is the correction:

=IF(M160,INDIRECT("V"&SUM(O2+1)),0)



"pegman" wrote:

I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that
value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!




Gord Dibben

IF-then formula doesn't work
 
ToolsProtectionProtect Worksheet is the norm.


Gord Dibben MS Excel MVP

On Sat, 5 Jan 2008 10:08:00 -0800, pegman
wrote:

Thanks guys, everything works beuatiful now...

I need to figure how to protect these worksheets NOW...!!!!



T. Valko

IF-then formula doesn't work
 
The reason you got an error is because as written:

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

Your formula is using the 0 in INDIRECT to denote that you're using R1C1
reference style.

So, Vn is not a legitimate R1C1 reference so you get the error.

--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
You put a bracket in wrong place
here is the correction:

=IF(M160,INDIRECT("V"&SUM(O2+1)),0)



"pegman" wrote:

I can't figure this one out...

=IF(M160,INDIRECT("V"&SUM(O2+1),0))

the INDIRECT("V"&SUM(O2+1) aspect worked fine, but I only wanted that
value
to show so I added the IF aspect... I keep getting errors in the value
--
I didn''''t go bald because of genetics, I''''m pulling them out one at a
time!





All times are GMT +1. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com