Solved

nested if

Posted on 2016-11-01
11
26 Views
Last Modified: 2016-11-01
=If(Y1160=AB1160,Y1160),If(Y1160=AB1160,Y1160),AE1160

please help me out i need value a nested if

this have an error
0
Comment
Question by:edo60
  • 5
  • 4
  • 2
11 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
Comment Utility
Both your conditions are the same, so you don't need a nested IF. This looks like it will suffice...

=IF(Y1160=AB1160, Y1160, AE1160)
0
 

Author Comment

by:edo60
Comment Utility
not the same
compare 3 diferent values
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
Comment Utility
You'll need to describe what you want the formula to do then. What 3 values are to be compared? Your proto-formula is checking if Y1160=AB1160 twice.
0
 

Author Comment

by:edo60
Comment Utility
ok

bajas    bajas   bajas  bajas      result          bajas

bajas altas   bajas  bajas      result            false

altas altas altas  altas       result    altas

altas bajas altas altas     result    false


Regards!!!
0
 
LVL 21

Expert Comment

by:yo_bee
Comment Utility
@EDO
Your if statement is not correctly structured

Nested IF should be soothing like this:

=If(A1=<something>,If(B2=<something> else,"Both are true","A1 is true, but B2 is false"),"A1 is false so B2 has to be false)

Open in new window

0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 250 total points
Comment Utility
So comparing 4 values, not 3? And if all values are the same, return that value, otherwise return FALSE? You don't need a nested IF formula then. Use COUNTIF to check that all 4 are the same...

=IF(COUNTIF(A2:D2,A2)=4, A2)

See the attached workbook for an example.
COUNTIF.xlsx
0
 
LVL 21

Assisted Solution

by:yo_bee
yo_bee earned 250 total points
Comment Utility
Try this
=IF(AND(A12=B12,B12=C12,C12=D12),A12,FALSE)

Open in new window

0
 

Author Comment

by:edo60
Comment Utility
wayne,
thats the idea but there are not consecutive values
how to achive
regards
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
Comment Utility
In that case you will be best using edo60's method.
0
 

Author Comment

by:edo60
Comment Utility
im gona copy them together
0
 

Author Closing Comment

by:edo60
Comment Utility
Tsm you experts!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel Limitation 2 25
Problem to open Excel file 15 35
Manipulate Data Quickly 2 11
Redacting a row in Excel based on a term. 17 29
What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now