Ms Excel New formula IFS To check Multiple condition to use - TopicsExpress



          

Ms Excel New formula IFS To check Multiple condition to use this formula in your excel: syntax for IFS: =ifs(cell ref,c1,dt1,c2,dt2,c3,dt3...) cell ref - for which cell you are going to check multiple conditions. c1 - >30 dt1 - display text open vba editor (Alt + F11) create New Module Paste the following code: Public Function IFs(ch_cell As Range, ParamArray con() As Variant) Dim R R = For I = LBound(con) To UBound(con) Step 2 If Left(con(I), 1) = And ch_cell.value > Val(Mid(con(I), 2)) Then R = con(I + 1) ElseIf Left(con(I), 1) = = And ch_cell.value = Mid(con(I), 2) Then R = con(I + 1) ElseIf Left(con(I), 2) = = And ch_cell.value >= Val(Mid(con(I), 3)) Then R = con(I + 1) ElseIf Left(con(I), 2) = And ch_cell.value Mid(con(I), 3) Then R = con(I + 1) End If If R Then IFs = R Exit Function End If IFs = INVALID FORMAT Next End Function youtu.be/Hu-9EOYrtF0
Posted on: Sat, 27 Dec 2014 02:22:44 +0000

Trending Topics



Recently Viewed Topics




© 2015