Hi experts,
I'm having trouble on how to show the value in C2 if there's no value in D2.
Please look at the sample that i attached in here.
F2 should be 15 not 0.
Adding Reputation to you is all i can do for helping me![]()
Hi experts,
I'm having trouble on how to show the value in C2 if there's no value in D2.
Please look at the sample that i attached in here.
F2 should be 15 not 0.
Adding Reputation to you is all i can do for helping me![]()
Last edited by khr0n0s; 03-05-2017 at 09:21 PM.
Something like this maybe:
In F2: =IF(LEN(D2)=0, C2, D2)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Hi khr0n0s,
I think the problem might be that your first "A" has a space in front of it? See the attached for two different methods to get what I think you want.
I want rep.xlsx
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Enter in E2 and copy down then you formula in F2 will work
Formula:
Please Login or Register to view this content.
v A B C D E F 1 Blah Blah 1 Date Blah Blah 2 Blah Blah 3 Helper (hide column) Result 2 A 1/1/2017 10 A 15 3 1/2/2017 A 4 1/3/2017 A 5 1/4/2017 5 A 6 1/5/2017 A 7 1/6/2017 A 8 1/8/2017 A 9 B 1/9/2017 15 7 B -3 10 1/10/2017 1 B 11 1/11/2017 2 B 12 1/12/2017 3 B 13 1/13/2017 2 2 B 14 1/14/2017 5 B 15 C 1/13/2017 10 6 C 4
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
In the second method you need to refresh the Pivot Table for it to show the correct answer.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks