+ Reply to Thread
Results 1 to 6 of 6

Formula that populates if 1-4 columns are populated

  1. #1
    Registered User
    Join Date
    02-19-2024
    Location
    Tunbridge Wells, England
    MS-Off Ver
    Kent
    Posts
    2

    Formula that populates if 1-4 columns are populated

    Good afternoon all, this is my first post, so please be gentle.

    I have an excel spreadsheet, where we have 4 different mailings showing (columns B - E). In Column O, I need a formula that adds £20 for each of the columns (B-E) that are populated. So if only 2 of the columns are populated, it will show £40, if one column is populated, it will give me £20, if all 4 columns are populated, it will give me £80.

    Hopefully this makes sense,

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula that populates if 1-4 columns are populated

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula that populates if 1-4 columns are populated

    how about using
    =COUNTA(B6:E6)*20
    BUt not sure what you have in O already
    =IF(SUM(F6:N6)<125,125,SUM(F6:N6))
    do you want to add , 20,40,60,80 to this number

    if so
    =IF(SUM(F6:N6)<125,125,SUM(F6:N6))+(COUNTA(B6:E6)*20)

    you may want to blank out the cell when not used
    so and
    =IF( A2="", "", IF(SUM(F6:N6)<125,125,SUM(F6:N6))+(COUNTA(B6:E6)*20)
    assuming always have a date
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    02-19-2024
    Location
    Tunbridge Wells, England
    MS-Off Ver
    Kent
    Posts
    2

    Re: Formula that populates if 1-4 columns are populated

    Fluff13 and Wayne, that is perfect, don't know why I didn't think of count in the first place, but yes this has solved my problem, stars, thank you

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Formula that populates if 1-4 columns are populated

    Glad to help & thanks for the feedback.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Formula that populates if 1-4 columns are populated

    you are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] in excel How do I create a dropdown list that populates a row from a range of 4 columns
    By Divsion8 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-29-2021, 10:10 AM
  2. Drop down populates multiple columns
    By lemonbug in forum Excel General
    Replies: 6
    Last Post: 12-23-2018, 03:17 PM
  3. [SOLVED] Calculate NETWORKDAYS from multiple columns and return NA if columns not populated yet
    By Cdavies in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2014, 10:51 AM
  4. Replies: 1
    Last Post: 08-28-2014, 12:48 AM
  5. Want to add columns to data list which auto populates to calendar
    By avib in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-19-2014, 10:28 AM
  6. [SOLVED] Modifying VBA code so calender populates on certain columns and not whole workbook
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2013, 10:19 AM
  7. Replies: 2
    Last Post: 03-20-2006, 09:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1