kmprice710
Board Regular
- Joined
- Jan 8, 2014
- Messages
- 87
- Office Version
- 2019
- Platform
- Windows
I have four columns of pricing data. If columns A, B, C are all blank, then I want to output whatever is in column D. If Columns A & B are blank but something is in C, then I want C. If Columns A & C are blank, but something is in B, then I want B. If Columns B & C are blank but something is in A, then I want A. There's never a case of something being in A & B, A & C or B & C at the same time.
I think I can write this with an IF/THEN using ISBLANK or COUNTBLANK, but how do I nest it?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]5.66
[/TD]
[TD][/TD]
[TD][/TD]
[TD]3.24[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]6.75[/TD]
[TD][/TD]
[TD]18.99[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]17.15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]7.82[/TD]
[TD]22.25
[/TD]
[/TR]
</tbody>[/TABLE]
I think I can write this with an IF/THEN using ISBLANK or COUNTBLANK, but how do I nest it?
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]5.66
[/TD]
[TD][/TD]
[TD][/TD]
[TD]3.24[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]6.75[/TD]
[TD][/TD]
[TD]18.99[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]17.15[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]7.82[/TD]
[TD]22.25
[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: