If a cell contains any text then add a value
Solved
I hope someone can help me with this...I've done this before but can't remember how.
I have a list of names (for an attendees list) and I need to show an extended total for each
person and the number of guests they will bring. Here's the layout...
B2 is the person's name
C2 is the number of guests they will bring
D2 is the total for that person (including them)
I need a formula that says: If B2 has any text, then add a value of "1" to C2 and enter the total in D2.
Hope that makes sense. Thank you in advance for helping.
I have a list of names (for an attendees list) and I need to show an extended total for each
person and the number of guests they will bring. Here's the layout...
B2 is the person's name
C2 is the number of guests they will bring
D2 is the total for that person (including them)
I need a formula that says: If B2 has any text, then add a value of "1" to C2 and enter the total in D2.
Hope that makes sense. Thank you in advance for helping.
Related:
- If a cell has text then return value
- Excel add 1 if cell contains text - Best answers
- If cell has text then return value - Best answers
- If cell contains date then return value ✓ - Office Software Forum
- Excel: If Date =, then enter a value ✓ - Excel Forum
- Excel "IF" function w/ date in test cell ✓ - Excel Forum
- Excel formula to check if cell contains a date - Excel Forum
- If cell A1 has text then cell B2 has today's Date ✓ - Excel Forum
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Updated on Nov 27, 2018 at 04:13 AM
Updated on Nov 27, 2018 at 04:13 AM
I need a formula that says: If B2 has any text, then add a value of "1" to C2 and enter the total in D2.
why not just the condition that if B2 is not blank
then D2 will have
=if(B2<>"",c2+1,"")
if you insist on condition that if B2 is text then the fomula in D2 is
=if(istext(B2),c2+1,"")
Mar 18, 2013 at 09:01 AM
If there is no Attendee, then there is no guests.. so C2 is always '+1'
Mar 18, 2013 at 02:16 PM
=IF(B2="","",(1+C2))