IIF function

SharmaAntriksh

New Member
Joined
Nov 8, 2017
Messages
31
https://uploadfiles.io/glxo4

i have this file at the following link in which i want to apply iif function in a way that if S1 = Operation(S1) then give me value from total otherwise remain blank

IIF S2 = S2(operation) then give me value from the same row of the total column otherwise remain blank
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
@Joe4
I think this should be in the Access forum.
I reported a duplicate posting yesterday & didn't realise that 1 was in the Access forum & 1 in the xl forum.
 
Upvote 0
I think this should be in the Access forum.
I reported a duplicate posting yesterday & didn't realise that 1 was in the Access forum & 1 in the xl forum.
OK, I have moved it to the Access forum.

SharmaAntriksh,
I do not have the ability to download that file.
Can you explain your question in more detail? Is "Operation" some User Defined Function that you have built?
Here is information on the IIF function in Access: https://www.techonthenet.com/access/functions/advanced/iif.php
 
Last edited:
Upvote 0
FWIW

IIf is an excel VBA function...

IIf(Expression, TruePart, FalsePart)

Code:
Sub test()
Dim testValue As Boolean
testValue = True
MsgBox IIf(testValue, "True", "False")
End Sub
 
Upvote 0
IIf is an excel VBA function...

IIf(Expression, TruePart, FalsePart)
Interesting...

I have not seen it used that way before, but that is good to know.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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