+ Reply to Thread
Results 1 to 6 of 6

Adding a number to a calculated number (1 or 2) based on a range.

  1. #1
    Registered User
    Join Date
    03-03-2023
    Location
    Minnesota
    MS-Off Ver
    2301 Build 16.0.16026.20196
    Posts
    2

    Adding a number to a calculated number (1 or 2) based on a range.

    Hello! I need a formula to read column A (no. of bundles) and search the range in columns C & D and then add the whole number from column E to the number in column A. Test.xlsx

    I usually use VLOOKUP, but am having a difficult time adding the whole number to it.
    Last edited by gofetch2023; 03-03-2023 at 12:12 PM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Adding a number to a calculated number (1 or 2) based on a range.

    Try, =XLOOKUP(A2,$E$2:$E$13,$F$2:$F$13,0,1,1)+A2, assuming add 0 if value > 5.99.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,519

    Re: Adding a number to a calculated number (1 or 2) based on a range.

    You could use this formula in B2:

    =IF(A2="","",A2+VLOOKUP(A2,$C$2:$E$13,3))

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Adding a number to a calculated number (1 or 2) based on a range.

    Sorry, should be =XLOOKUP(A2,$D$2:$D$13,$E$2:$E$13,0,1,1)+A2

  5. #5
    Registered User
    Join Date
    03-03-2023
    Location
    Minnesota
    MS-Off Ver
    2301 Build 16.0.16026.20196
    Posts
    2

    Re: Adding a number to a calculated number (1 or 2) based on a range.

    Both of these worked. Thanks for your help!

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,519

    Re: Adding a number to a calculated number (1 or 2) based on a range.

    You're welcome - thanks for the rep.

    Pete

+ 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] According to the total number the number of each denomination can be calculated
    By Sakurayuki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2023, 02:42 AM
  2. [SOLVED] Incrementing number based number range
    By ramserp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2018, 07:57 AM
  3. [SOLVED] How to correctly display the correct calculated number and mask away exceeding number
    By Andrew88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2017, 07:44 AM
  4. Replies: 1
    Last Post: 07-18-2013, 10:11 AM
  5. Pivot - calculated % based on a fixed number - #I/T
    By BJDK in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-31-2013, 03:00 PM
  6. Adding zeros based on number of character
    By Kb24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2009, 03:59 AM
  7. Adding a number to a range of cells
    By scootermclean in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-12-2008, 03:27 AM

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